Adjust lints for Rust clippy 1.51

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-03-25 12:34:25 -04:00
1 parent 7d042337e2
commit 372b2d314e
2 files changed
+7 -4

No files matched your search

+1 -1
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;
+6 -3
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,