Don't need Read for shallow copy

This commit is contained in:
Chris Hennick 2023-04-23 15:09:22 -07:00
parent 85689cd2e6
commit 9330bdb7b7
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -839,9 +839,7 @@ impl<W: Write + Seek> ZipWriter<W> {
Ok(())
}
}
impl <RW: Read + Write + Seek> ZipWriter<RW> {
fn data_by_name(&mut self, name: &str) -> ZipResult<&ZipFileData> {
self.finish_file()?;
for file in self.files.iter() {