style: cargo fmt --all
This commit is contained in:
parent
1b7c09e558
commit
5ae025e2cb
2 changed files with 15 additions and 2 deletions
|
@ -84,7 +84,7 @@ impl <'k> Debug for FileOperation<'k> {
|
|||
};\n\
|
||||
writer.merge_archive(sub_writer.finish_into_readable()?)?;\n")?;
|
||||
},
|
||||
}?;
|
||||
}
|
||||
match &self.reopen {
|
||||
ReopenOption::DoNotReopen => Ok(()),
|
||||
ReopenOption::ViaFinish => {
|
||||
|
|
15
src/write.rs
15
src/write.rs
|
@ -2814,7 +2814,20 @@ mod test {
|
|||
let sub_writer = {
|
||||
let mut writer = ZipWriter::new(Cursor::new(Vec::new()));
|
||||
writer.set_flush_on_finish_file(false);
|
||||
let options = FileOptions { compression_method: Stored, compression_level: None, last_modified_time: DateTime::from_date_and_time(2060, 4, 6, 13, 13, 3)?, permissions: None, large_file: true, encrypt_with: None, extended_options: ExtendedFileOptions {extra_data: vec![].into(), central_extra_data: vec![].into()}, alignment: 0, ..Default::default()};
|
||||
let options = FileOptions {
|
||||
compression_method: Stored,
|
||||
compression_level: None,
|
||||
last_modified_time: DateTime::from_date_and_time(2060, 4, 6, 13, 13, 3)?,
|
||||
permissions: None,
|
||||
large_file: true,
|
||||
encrypt_with: None,
|
||||
extended_options: ExtendedFileOptions {
|
||||
extra_data: vec![].into(),
|
||||
central_extra_data: vec![].into(),
|
||||
},
|
||||
alignment: 0,
|
||||
..Default::default()
|
||||
};
|
||||
writer.start_file_from_path("\0", options)?;
|
||||
writer.write_all(&([]))?;
|
||||
writer = ZipWriter::new_append(writer.finish()?)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue