From: Jason Ish Date: Wed, 11 Mar 2020 17:43:17 +0000 (-0600) Subject: rust: allow some clippy lints without warning X-Git-Tag: suricata-6.0.0-beta1~380 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddb22549bed9ed8287e2ad5a03859391950e4088;p=thirdparty%2Fsuricata.git rust: allow some clippy lints without warning Suppresses some clippy lints that have more to do with style than anything else, to reduce the amount of noise in the clippy output. --- diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 0c51dcd85c..637c3d1a86 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -17,6 +17,13 @@ #![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;