aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-08-21 09:31:57 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-08-21 09:31:57 +0200
commit1ac4165e94b64ac2a8b30bf684f3ca8a3cb10965 (patch)
treea9bbb61d85bc0222ec532cc7c4495f371b3b1e61
parenta026011ab7c151f44e062c787d276398af945189 (diff)
downloadcbconv-1ac4165e94b64ac2a8b30bf684f3ca8a3cb10965.tar.gz
cbconv-1ac4165e94b64ac2a8b30bf684f3ca8a3cb10965.tar.bz2
cbconv-1ac4165e94b64ac2a8b30bf684f3ca8a3cb10965.zip
Remove some warnings.
-rw-r--r--src/main.rs4
1 files 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()))