From 5e216fe15016566bde3b4918cb5f6f9aef7017c4 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 24 May 2024 13:08:05 -0700 Subject: [PATCH] Bug fix: len() is `must-use` Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --- benches/read_metadata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/read_metadata.rs b/benches/read_metadata.rs index f4a77988..73f2b26e 100644 --- a/benches/read_metadata.rs +++ b/benches/read_metadata.rs @@ -61,7 +61,7 @@ fn parse_archive_with_comment(bench: &mut Bencher) { bench.bench_n(1, |_| { let archive = ZipArchive::new(Cursor::new(bytes.as_slice())).unwrap(); - archive.comment().len(); + let _ = archive.comment().len(); }); bench.bytes = bytes.len() as u64; }