Fix bug in wasmer_module_new

This commit is contained in:
Felix Schütt
2022-11-01 11:38:31 +01:00
parent 51ae0b6a60
commit 84feb95c76
2 changed files with 2 additions and 2 deletions

View File

@@ -1720,7 +1720,7 @@ fn try_autoinstall_zig() -> Option<PathBuf> {
}
#[cfg(feature = "http")]
fn install_zig(target_targz_path: &PathBuf) -> Option<PathBuf> {
fn install_zig(target_targz_path: &Path) -> Option<PathBuf> {
let resp = reqwest::blocking::get("https://ziglang.org/download/index.json");
let resp = resp.ok()?;
let resp = resp.json::<ZiglangOrgJson>();