From: Jason Ish Date: Thu, 26 Jan 2023 17:29:55 +0000 (-0600) Subject: rust: suppress specific manual_flatten list X-Git-Tag: suricata-7.0.0-rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64cb687a65d4fe14558fc89c305680eecbca7ee6;p=thirdparty%2Fsuricata.git rust: suppress specific manual_flatten list In this case of debug code, the explicit iterator seems to make more sense. --- 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));