From: Philippe Antoine Date: Fri, 22 Jan 2021 14:31:59 +0000 (+0100) Subject: rust: fix warning about unused values in smb tests X-Git-Tag: suricata-7.0.0-beta1~1842 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5774%2Fhead;p=thirdparty%2Fsuricata.git rust: fix warning about unused values in smb tests --- diff --git a/rust/src/smb/nbss_records.rs b/rust/src/smb/nbss_records.rs index 8dae379e50..9284587443 100644 --- a/rust/src/smb/nbss_records.rs +++ b/rust/src/smb/nbss_records.rs @@ -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(_)) => {