From 8ac363c34dc41e681e0efc6a741febc86855ceb4 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 22 Jan 2021 15:31:59 +0100 Subject: [PATCH] rust: fix warning about unused values in smb tests --- rust/src/smb/nbss_records.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(_)) => { -- 2.47.2