chore: fix type mismatch in shallow_copy_file caused by last fix

This commit is contained in:
Chris Hennick 2024-05-09 19:06:44 -07:00 committed by GitHub
parent 34b99956c9
commit 35b3a8f257
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -1455,8 +1455,8 @@ impl<W: Write + Seek> ZipWriter<W> {
self.finish_file()?; self.finish_file()?;
let src_index = self.index_by_name(src_name)?; let src_index = self.index_by_name(src_name)?;
let mut dest_data = self.files[src_index].to_owned(); let mut dest_data = self.files[src_index].to_owned();
dest_data.file_name = dest_name.into(); dest_data.file_name = dest_name.to_string().into();
dest_data.file_name_raw = dest_name.into(); dest_data.file_name_raw = dest_name.into_boxed_bytes();
self.insert_file_data(dest_data)?; self.insert_file_data(dest_data)?;
Ok(()) Ok(())
} }