Tell clippy about MSRV (#114)

* Remove unused import

* Tell clippy about MSRV
This commit is contained in:
Jonas Platte 2021-08-04 12:15:58 +02:00 committed by GitHub
parent 09ecd42b32
commit d285dfb568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

1
.clippy.toml Normal file
View file

@ -0,0 +1 @@
msrv = "1.40"

View file

@ -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;

View file

@ -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))]