From 64cb687a65d4fe14558fc89c305680eecbca7ee6 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 26 Jan 2023 11:29:55 -0600 Subject: [PATCH] rust: suppress specific manual_flatten list In this case of debug code, the explicit iterator seems to make more sense. --- rust/src/nfs/nfs4.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/src/nfs/nfs4.rs b/rust/src/nfs/nfs4.rs index b07c35de69..d8a353fb3c 100644 --- a/rust/src/nfs/nfs4.rs +++ b/rust/src/nfs/nfs4.rs @@ -320,6 +320,7 @@ impl NFSState { Nfs4ResponseContent::ReadDir(_s, Some(ref rd)) => { SCLogDebug!("READDIRv4: status {} eof {}", _s, rd.eof); + #[allow(clippy::manual_flatten)] for d in &rd.listing { if let Some(_d) = d { SCLogDebug!("READDIRv4: dir {}", String::from_utf8_lossy(_d.name)); -- 2.47.2