Skip to content

Commit

Permalink
style: Fix a Clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Jun 18, 2024
1 parent 19118f4 commit 4547248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ impl<R: Read + Seek> ZipArchive<R> {
pub fn with_config(config: Config, mut reader: R) -> ZipResult<ZipArchive<R>> {
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(),
Expand Down
2 changes: 1 addition & 1 deletion src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl<A: Read + Write + Seek> ZipWriter<A> {
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)),
Expand Down

0 comments on commit 4547248

Please sign in to comment.