Reformat
This commit is contained in:
parent
5c51ddc49e
commit
382770a947
1 changed files with 5 additions and 2 deletions
|
@ -1401,12 +1401,12 @@ fn path_to_string(path: &std::path::Path) -> String {
|
||||||
mod test {
|
mod test {
|
||||||
use super::{FileOptions, ZipWriter};
|
use super::{FileOptions, ZipWriter};
|
||||||
use crate::compression::CompressionMethod;
|
use crate::compression::CompressionMethod;
|
||||||
|
use crate::result::ZipResult;
|
||||||
use crate::types::DateTime;
|
use crate::types::DateTime;
|
||||||
use crate::ZipArchive;
|
use crate::ZipArchive;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::{Read, Write};
|
use std::io::{Read, Write};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use crate::result::ZipResult;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn write_empty_zip() {
|
fn write_empty_zip() {
|
||||||
|
@ -1764,7 +1764,10 @@ mod test {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let mut writer = ZipWriter::new_append(writer.finish().unwrap()).unwrap();
|
let mut writer = ZipWriter::new_append(writer.finish().unwrap()).unwrap();
|
||||||
writer
|
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();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:02x?}", zip.get_ref());
|
println!("{:02x?}", zip.get_ref());
|
||||||
|
|
Loading…
Add table
Reference in a new issue