diff --git a/Cargo.toml b/Cargo.toml index 575872294..1ca910189 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ ureq = { version = "3.0", features = [ "gzip", ], default-features = false } native-tls = "0.2" -zip = "8.0" +zip = "9.0" [features] default = ["enum", "runtime"] diff --git a/windows_build.rs b/windows_build.rs index 2640c1760..e7d69f3b1 100644 --- a/windows_build.rs +++ b/windows_build.rs @@ -203,7 +203,8 @@ impl DevelPack { let inner_name = zip_content .file_names() .next() - .and_then(|f| f.split('/').next()) + .transpose()? + .and_then(|f| f.split('/').next().map(str::to_owned)) .context("Failed to get development pack name")?; let devpack_path = out_dir.join(inner_name); let _ = std::fs::remove_dir_all(&devpack_path);