From: Jason Ish Date: Mon, 3 Oct 2022 21:21:35 +0000 (-0600) Subject: rust: allow some more clippy lints X-Git-Tag: suricata-7.0.0-beta1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63b3d73ccc0389a91137e4df3469f9792df55dbb;p=thirdparty%2Fsuricata.git rust: allow some more clippy lints Allow these lints for now until some more investigation can be done, as --fix attempts to fix these. --- diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 5394b05fef..0a50862089 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -31,6 +31,11 @@ #![allow(clippy::let_and_return)] #![allow(clippy::needless_bool)] #![allow(clippy::char_lit_as_u8)] +#![allow(clippy::len_without_is_empty)] + +// Would be good to fix, but needs more investigation with respect to +// using as a library. +#![allow(clippy::crate_in_macro_def)] // To be fixed, but remove the noise for now. #![allow(clippy::collapsible_if)] @@ -63,6 +68,11 @@ #![allow(clippy::while_let_loop)] #![allow(clippy::redundant_pattern_matching)] #![allow(clippy::field_reassign_with_default)] +#![allow(clippy::bool_assert_comparison)] +#![allow(clippy::derive_partial_eq_without_eq)] +#![allow(clippy::manual_find)] +#![allow(clippy::map_flatten)] +#![allow(clippy::result_unit_err)] #[macro_use] extern crate bitflags;