chore: &str doesn't have into_boxed_bytes, so call to_string first
This commit is contained in:
parent
35b3a8f257
commit
f7ea2764a2
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue