diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 00000000..0f404fa5 --- /dev/null +++ b/.clippy.toml @@ -0,0 +1 @@ +msrv = "1.40" diff --git a/src/extract/typed_header.rs b/src/extract/typed_header.rs index 3307b339..12a5966d 100644 --- a/src/extract/typed_header.rs +++ b/src/extract/typed_header.rs @@ -1,4 +1,4 @@ -use super::{rejection::TypedHeaderRejection, take_body, FromRequest, RequestParts}; +use super::{rejection::TypedHeaderRejection, FromRequest, RequestParts}; use async_trait::async_trait; use headers::HeaderMap; use std::ops::Deref; diff --git a/src/lib.rs b/src/lib.rs index f71de478..95641863 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -705,12 +705,7 @@ missing_docs )] #![deny(unreachable_pub, broken_intra_doc_links, private_in_public)] -#![allow( - elided_lifetimes_in_paths, - // TODO: Remove this once the MSRV bumps to 1.42.0 or above. - clippy::match_like_matches_macro, - clippy::type_complexity -)] +#![allow(elided_lifetimes_in_paths, clippy::type_complexity)] #![forbid(unsafe_code)] #![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(test, allow(clippy::float_cmp))]