Apply suggestions from code review
Fix errors Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
parent
df70f6a320
commit
a28b16e69c
1 changed files with 1 additions and 2 deletions
|
@ -796,9 +796,8 @@ impl<W: Write + Seek> ZipWriter<W> {
|
||||||
extra_field,
|
extra_field,
|
||||||
);
|
);
|
||||||
let version_needed = file.version_needed();
|
let version_needed = file.version_needed();
|
||||||
file.version_needed = version_needed;
|
|
||||||
file.version_made_by = file.version_made_by.max(version_needed as u8);
|
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 file = &mut self.files[index];
|
||||||
let writer = self.inner.get_plain();
|
let writer = self.inner.get_plain();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue