From 35b3a8f2573a519b30ae07b5004a3dc1289c7a3e Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 9 May 2024 19:06:44 -0700 Subject: [PATCH] chore: fix type mismatch in shallow_copy_file caused by last fix --- src/write.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/write.rs b/src/write.rs index bbbef3aa..ddf46a50 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1455,8 +1455,8 @@ impl ZipWriter { self.finish_file()?; 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.into(); - dest_data.file_name_raw = dest_name.into(); + dest_data.file_name = dest_name.to_string().into(); + dest_data.file_name_raw = dest_name.into_boxed_bytes(); self.insert_file_data(dest_data)?; Ok(()) }