From 45472486f159b0c2feb9591159f7d805ac075013 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:41:16 -0700 Subject: [PATCH] style: Fix a Clippy warning --- src/read.rs | 2 +- src/write.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read.rs b/src/read.rs index 82c3e60a..129b37ff 100644 --- a/src/read.rs +++ b/src/read.rs @@ -812,7 +812,7 @@ impl ZipArchive { pub fn with_config(config: Config, mut reader: R) -> ZipResult> { let mut results = spec::Zip32CentralDirectoryEnd::find_and_parse(&mut reader)?; for (footer, cde_start_pos) in results.iter_mut() { - if let Ok(shared) = Self::get_metadata(config, &mut reader, &footer, *cde_start_pos) { + if let Ok(shared) = Self::get_metadata(config, &mut reader, footer, *cde_start_pos) { return Ok(ZipArchive { reader, shared: shared.into(), diff --git a/src/write.rs b/src/write.rs index 8779893c..37453eed 100644 --- a/src/write.rs +++ b/src/write.rs @@ -628,7 +628,7 @@ impl ZipWriter { let mut results = spec::Zip32CentralDirectoryEnd::find_and_parse(&mut readwriter)?; for (footer, cde_start_pos) in results.iter_mut() { if let Ok(metadata) = - ZipArchive::get_metadata(config, &mut readwriter, &footer, *cde_start_pos) + ZipArchive::get_metadata(config, &mut readwriter, footer, *cde_start_pos) { return Ok(ZipWriter { inner: Storer(MaybeEncrypted::Unencrypted(readwriter)),