From 44d179355c6e2f01072410f0c9ec4a9f043beb61 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Thu, 4 May 2023 16:35:04 -0700 Subject: [PATCH] Reformat --- src/write.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index da82fb7b..62fad178 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1600,6 +1600,11 @@ mod test { writer .shallow_copy_file(RT_TEST_FILENAME, SECOND_FILENAME) .unwrap(); + writer + .shallow_copy_file(RT_TEST_FILENAME, SECOND_FILENAME) + .expect_err("Duplicate filename"); + let zip = writer.finish().unwrap(); + let mut writer = ZipWriter::new_append(zip).unwrap(); writer .shallow_copy_file(SECOND_FILENAME, SECOND_FILENAME) .expect_err("Duplicate filename"); @@ -1643,7 +1648,9 @@ mod test { .unwrap(); let zip = writer.finish().unwrap(); let mut writer = ZipWriter::new_append(zip).unwrap(); - writer.deep_copy_file(RT_TEST_FILENAME, THIRD_FILENAME).unwrap(); + writer + .deep_copy_file(RT_TEST_FILENAME, THIRD_FILENAME) + .unwrap(); let zip = writer.finish().unwrap(); let mut reader = ZipArchive::new(zip).unwrap(); let mut file_names: Vec<&str> = reader.file_names().collect();