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>();

View File

@@ -14,7 +14,7 @@ extern size_t VOLUMES_LENGTH asm("VOLUMES_LENGTH");
extern char VOLUMES_DATA asm("VOLUMES_DATA");
#endif
extern wasm_module_t* wasmer_module_new(wasm_store_t* store) asm("wasmer_module_new");
extern wasm_module_t* wasmer_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_module_new");
extern wasm_module_t* wasmer_static_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_static_module_new");