]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix warning about unused values in smb tests 5774/head
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 22 Jan 2021 14:31:59 +0000 (15:31 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 23 Jan 2021 08:58:28 +0000 (09:58 +0100)
rust/src/smb/nbss_records.rs

index 8dae379e50797e6ee4eba26b64da906a6151158c..92845874432f7d503b2be62a9d6893a9a49c5142 100644 (file)
@@ -126,7 +126,7 @@ mod tests {
                 // there should be nothing left
                 assert_eq!(remainder.len(), 0);
             }
-            Err(nom::Err::Error((remainder, err))) => {
+            Err(nom::Err::Error((_remainder, err))) => {
                 panic!("Result should not be an error: {:?}.", err);
             }
             Err(nom::Err::Incomplete(_)) => {
@@ -170,7 +170,7 @@ mod tests {
                 // there should be nothing left
                 assert_eq!(remainder.len(), 0);
             }
-            Err(nom::Err::Error((remainder, err))) => {
+            Err(nom::Err::Error((_remainder, err))) => {
                 panic!("Result should not be an error: {:?}.", err);
             }
             Err(nom::Err::Incomplete(_)) => {
@@ -210,7 +210,7 @@ mod tests {
                 // there should be nothing left
                 assert_eq!(remainder.len(), 0);
             }
-            Err(nom::Err::Error((remainder, err))) => {
+            Err(nom::Err::Error((_remainder, err))) => {
                 panic!("Result should not be an error: {:?}.", err);
             }
             Err(nom::Err::Incomplete(_)) => {