Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Fix errors

Signed-off-by: Chris Hennick <[email protected]>
  • Loading branch information
Pr0methean committed May 24, 2024
1 parent df70f6a commit a28b16e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,8 @@ impl<W: Write + Seek> ZipWriter<W> {
extra_field,
);
let version_needed = file.version_needed();
file.version_needed = version_needed;
file.version_made_by = file.version_made_by.max(version_needed as u8);
let index = self.insert_file_data(file)?;
let index = self.insert_file_data(file)?;
let file = &mut self.files[index];
let writer = self.inner.get_plain();

Expand Down

0 comments on commit a28b16e

Please sign in to comment.