Bug fix: don't switch_to when deep copying
This commit is contained in:
parent
b52464cf25
commit
6b4a07f2a7
1 changed files with 0 additions and 1 deletions
|
@ -341,7 +341,6 @@ impl<A: Read + Write + Seek> ZipWriter<A> {
|
||||||
reader.read_to_end(&mut copy)?;
|
reader.read_to_end(&mut copy)?;
|
||||||
drop(reader);
|
drop(reader);
|
||||||
self.start_entry(dest_name, options, Some(raw_values))?;
|
self.start_entry(dest_name, options, Some(raw_values))?;
|
||||||
self.inner.switch_to(CompressionMethod::Stored, None)?;
|
|
||||||
self.writing_to_file = true;
|
self.writing_to_file = true;
|
||||||
self.writing_raw = true;
|
self.writing_raw = true;
|
||||||
Ok(self.write_all(©)?)
|
Ok(self.write_all(©)?)
|
||||||
|
|
Loading…
Add table
Reference in a new issue