From e49ce494718364cef0c2df5c1aed36d53ea731f2 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 29 Nov 2022 07:03:54 -0600 Subject: [PATCH] rust/clippy: allow result_unit_err in http2 only Its the only module making use of this pattern, but we shouldn't let new modules use this pattern. --- rust/src/http2/mod.rs | 2 ++ rust/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/src/http2/mod.rs b/rust/src/http2/mod.rs index 9aa6bbaac0..f1d6f30bb2 100644 --- a/rust/src/http2/mod.rs +++ b/rust/src/http2/mod.rs @@ -15,6 +15,8 @@ * 02110-1301, USA. */ +#![allow(clippy::result_unit_err)] + mod decompression; pub mod detect; pub mod http2; diff --git a/rust/src/lib.rs b/rust/src/lib.rs index d74f88527b..d7c323cda2 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -29,7 +29,6 @@ // To be fixed, but remove the noise for now. #![allow(clippy::match_like_matches_macro)] #![allow(clippy::module_inception)] -#![allow(clippy::result_unit_err)] #![allow(clippy::type_complexity)] #[macro_use]