From 6b4a07f2a7399a3ec53ca03d7f6c5f975bff428b Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sat, 29 Apr 2023 17:46:48 -0700 Subject: [PATCH] Bug fix: don't switch_to when deep copying --- src/write.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 65f0bd92..35374aa6 100644 --- a/src/write.rs +++ b/src/write.rs @@ -341,7 +341,6 @@ impl ZipWriter { reader.read_to_end(&mut copy)?; drop(reader); self.start_entry(dest_name, options, Some(raw_values))?; - self.inner.switch_to(CompressionMethod::Stored, None)?; self.writing_to_file = true; self.writing_raw = true; Ok(self.write_all(©)?)