]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow some clippy lints without warning
authorJason Ish <jason.ish@oisf.net>
Wed, 11 Mar 2020 17:43:17 +0000 (11:43 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 3 Jun 2020 11:36:55 +0000 (13:36 +0200)
Suppresses some clippy lints that have more to do with style
than anything else, to reduce the amount of noise in the
clippy output.

rust/src/lib.rs

index 0c51dcd85cc4d31ae5f7dc12bb613c37e611ad74..637c3d1a86b423dd24fa93c53dcd4750d8251e84 100644 (file)
 
 #![cfg_attr(feature = "strict", deny(warnings))]
 
+// Clippy lints we want to suppress due to style, or simply too noisy
+// and not a priority right now.
+#![allow(clippy::missing_safety_doc)]
+#![allow(clippy::needless_return)]
+#![allow(clippy::redundant_field_names)]
+#![allow(clippy::len_zero)]
+
 #[macro_use]
 extern crate nom;