chore: Box<str> doesn't directly convert to PathBuf, so convert back to String first

This commit is contained in:
Chris Hennick 2024-05-15 16:55:00 -07:00
parent 267ab432cf
commit 7536a98da1
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -706,7 +706,7 @@ impl<R: Read + Seek> ZipArchive<R> {
let target = target.into_boxed_str();
let target_is_dir_from_archive =
self.shared.files.contains_key(&target) && is_dir(&target);
let target_internal_path: PathBuf = target.into();
let target_internal_path: PathBuf = target.to_string().into();
let target_path = directory.as_ref().join(target_internal_path.clone());
let target_is_dir = if target_is_dir_from_archive {
true