From ddb22549bed9ed8287e2ad5a03859391950e4088 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 11 Mar 2020 11:43:17 -0600 Subject: [PATCH] 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. --- rust/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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;