chore: Fix a build error

This commit is contained in:
Chris Hennick 2024-06-14 14:42:20 -07:00
parent 20d55432dc
commit 5cfa0677ff
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -959,8 +959,9 @@ impl<W: Write + Seek> ZipWriter<W> {
)?;
}
}
extensions.validate_extra_data()?;
ExtendedFileOptions::validate_extra_data(&extensions.extra_data)?;
if extensions.central_extra_data.len() > 0 {
ExtendedFileOptions::validate_extra_data(&extensions.central_extra_data)?;
file.central_extra_field = Some(extensions.central_extra_data);
}
writer.write_all(&extensions.extra_data)?;