]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: suppress specific manual_flatten list 8468/head
authorJason Ish <jason.ish@oisf.net>
Thu, 26 Jan 2023 17:29:55 +0000 (11:29 -0600)
committerVictor Julien <vjulien@oisf.net>
Thu, 26 Jan 2023 21:02:54 +0000 (22:02 +0100)
In this case of debug code, the explicit iterator seems to make more
sense.

rust/src/nfs/nfs4.rs

index b07c35de6924ab75a17a3267608260581c4b5eba..d8a353fb3c67ab0732945cadfae13b461e634d98 100644 (file)
@@ -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));