mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
Implement wasm_extern_t with type casting
This commit is contained in:
@@ -53,9 +53,8 @@ pub unsafe extern "C" fn wasm_instance_new(
|
||||
.into_slice()
|
||||
.map(|imports| imports.iter())
|
||||
.unwrap_or_else(|| [].iter())
|
||||
.map(|imp| &imp.inner)
|
||||
.map(|imp| Extern::from((&**imp).clone()))
|
||||
.take(module_import_count)
|
||||
.cloned()
|
||||
.collect();
|
||||
|
||||
let instance = match Instance::new(wasm_module, &resolver) {
|
||||
|
||||
Reference in New Issue
Block a user