From 1ac4165e94b64ac2a8b30bf684f3ca8a3cb10965 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 21 Aug 2021 09:31:57 +0200 Subject: Remove some warnings. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a694739..a561af4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -116,7 +116,7 @@ fn p_app_version<'a>(input: &'a [u8]) -> IResult<&'a [u8], PAppVersion> { } fn p_arrangement<'a>(input: &'a [u8]) -> IResult<&'a [u8], PArrangement> { - let mut v = PArrangement::default(); + let v = PArrangement::default(); Ok((input, v)) } @@ -247,7 +247,7 @@ fn arrangement_chunk<'a>(input: &'a [u8]) -> IResult<&'a [u8], PArrangement> { println!("[*] {:?}: {} ({} bytes)", o.node_type, o.name, o.payload.unwrap().len()); assert_eq!(r2.len(), 0); - let (r2, v) = p_arrangement(o.payload.unwrap())?; + let (r2, _v) = p_arrangement(o.payload.unwrap())?; // assert_eq!(r2.len(), 0); Ok((r2, PArrangement::default())) -- cgit v1.2.3