format: cargo fmt

This commit is contained in:
anatawa12 2023-10-13 21:47:05 +09:00
parent 4812d77e5b
commit ffbf5f7b58
No known key found for this signature in database
GPG key ID: 9CA909848B8E4EA6

View file

@ -13,7 +13,7 @@ use zip_next::{CompressionMethod, ZipWriter, SUPPORTED_COMPRESSION_METHODS};
fn end_to_end() { fn end_to_end() {
for &method in SUPPORTED_COMPRESSION_METHODS { for &method in SUPPORTED_COMPRESSION_METHODS {
if method == CompressionMethod::DEFLATE64 { if method == CompressionMethod::DEFLATE64 {
continue continue;
} }
let file = &mut Cursor::new(Vec::new()); let file = &mut Cursor::new(Vec::new());
@ -32,7 +32,7 @@ fn end_to_end() {
fn copy() { fn copy() {
for &method in SUPPORTED_COMPRESSION_METHODS { for &method in SUPPORTED_COMPRESSION_METHODS {
if method == CompressionMethod::DEFLATE64 { if method == CompressionMethod::DEFLATE64 {
continue continue;
} }
let src_file = &mut Cursor::new(Vec::new()); let src_file = &mut Cursor::new(Vec::new());
write_test_archive(src_file, method, false); write_test_archive(src_file, method, false);
@ -74,7 +74,7 @@ fn copy() {
fn append() { fn append() {
for &method in SUPPORTED_COMPRESSION_METHODS { for &method in SUPPORTED_COMPRESSION_METHODS {
if method == CompressionMethod::DEFLATE64 { if method == CompressionMethod::DEFLATE64 {
continue continue;
} }
for shallow_copy in &[false, true] { for shallow_copy in &[false, true] {
println!("Writing file with {method} compression, shallow_copy {shallow_copy}"); println!("Writing file with {method} compression, shallow_copy {shallow_copy}");