This commit is contained in:
Chris Hennick 2023-05-14 18:25:35 -07:00
parent 5c51ddc49e
commit 382770a947
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -1401,12 +1401,12 @@ fn path_to_string(path: &std::path::Path) -> String {
mod test {
use super::{FileOptions, ZipWriter};
use crate::compression::CompressionMethod;
use crate::result::ZipResult;
use crate::types::DateTime;
use crate::ZipArchive;
use std::io;
use std::io::{Read, Write};
use std::sync::Arc;
use crate::result::ZipResult;
#[test]
fn write_empty_zip() {
@ -1764,7 +1764,10 @@ mod test {
.unwrap();
let mut writer = ZipWriter::new_append(writer.finish().unwrap()).unwrap();
writer
.start_file("#PK\u{6}\u{7}\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", FileOptions::default())
.start_file(
"#PK\u{6}\u{7}\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
FileOptions::default(),
)
.unwrap();
let zip = writer.finish().unwrap();
println!("{:02x?}", zip.get_ref());