Apply suggestions from code review

Fix errors

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
Chris Hennick 2024-05-24 15:27:28 -07:00 committed by GitHub
parent df70f6a320
commit a28b16e69c
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -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();