]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow some more clippy lints
authorJason Ish <jason.ish@oisf.net>
Mon, 3 Oct 2022 21:21:35 +0000 (15:21 -0600)
committerVictor Julien <vjulien@oisf.net>
Tue, 4 Oct 2022 09:22:02 +0000 (11:22 +0200)
Allow these lints for now until some more investigation can be done, as
--fix attempts to fix these.

rust/src/lib.rs

index 5394b05fefc5ad42fb188e7ab2372bcd7b4e9b0b..0a5086208965d37cdbb3778efb30cebcfe5627e9 100644 (file)
 #![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)]
 #![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;