Adjust lints for Rust clippy 1.51

This commit is contained in:
Dzmitry Malyshau
2021-03-25 12:26:35 -04:00
committed by Dzmitry Malyshau
parent 7d042337e2
commit 372b2d314e
2 changed files with 7 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
#![allow(clippy::panic, clippy::needless_lifetimes)]
#![allow(clippy::panic, clippy::needless_lifetimes, clippy::upper_case_acronyms)]
use pomelo::pomelo;
pomelo! {
//%verbose;

View File

@@ -20,13 +20,16 @@ emitted in order to take effect. This happens in one of the following ways:
!*/
// TODO: use `strip_prefix` instead when Rust 1.45 <= MSRV
#![allow(
renamed_and_removed_lints,
unknown_lints, // requires Rust 1.51
clippy::new_without_default,
clippy::unneeded_field_pattern,
clippy::match_like_matches_macro
clippy::match_like_matches_macro,
clippy::manual_strip,
clippy::unknown_clippy_lints,
)]
// TODO: use `strip_prefix` instead when Rust 1.45 <= MSRV
#![allow(clippy::manual_strip, clippy::unknown_clippy_lints)]
#![warn(
trivial_casts,
trivial_numeric_casts,