chore: &str doesn't have into_boxed_bytes, so call to_string first

This commit is contained in:
Chris Hennick 2024-05-09 19:08:55 -07:00 committed by GitHub
parent 35b3a8f257
commit f7ea2764a2
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

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