From 425a05e1c84de33a53bfe61b94e376132662a9f2 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Thu, 4 May 2023 12:14:30 -0700 Subject: [PATCH] Revert "Bug fix" This reverts commit 6e67bfcda5d7c4c45a942db0bfef98e5b7d0eb23. --- src/write.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/write.rs b/src/write.rs index 664648d6..729d9395 100644 --- a/src/write.rs +++ b/src/write.rs @@ -348,9 +348,7 @@ impl ZipWriter { self.abort_file().unwrap(); return Err(e.into()); } - self.writing_to_file = false; - self.writing_raw = false; - Ok(()) + self.finish_file() } }