chore: Fix a build error
This commit is contained in:
parent
20d55432dc
commit
5cfa0677ff
1 changed files with 2 additions and 1 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue