From d285dfb568d21969b31d6f73f0852bb0b9cbed6a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 4 Aug 2021 12:15:58 +0200 Subject: [PATCH] Tell clippy about MSRV (#114) * Remove unused import * Tell clippy about MSRV --- .clippy.toml | 1 + src/extract/typed_header.rs | 2 +- src/lib.rs | 7 +------ 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 .clippy.toml 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))]