mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
Avoid unnecessary &&wasmer::FunctionType
This commit is contained in:
@@ -78,7 +78,7 @@ pub unsafe extern "C" fn wasm_func_new(
|
||||
|
||||
Ok(processed_results)
|
||||
};
|
||||
let function = Function::new(&store.inner, &func_sig, inner_callback);
|
||||
let function = Function::new(&store.inner, func_sig, inner_callback);
|
||||
|
||||
Some(Box::new(wasm_func_t {
|
||||
instance: None,
|
||||
@@ -154,7 +154,7 @@ pub unsafe extern "C" fn wasm_func_new_with_env(
|
||||
|
||||
let function = Function::new_with_env(
|
||||
&store.inner,
|
||||
&func_sig,
|
||||
func_sig,
|
||||
WrapperEnv { env, finalizer },
|
||||
inner_callback,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user