Avoid unnecessary &&wasmer::FunctionType

This commit is contained in:
Simon Warta
2020-12-14 13:32:42 +01:00
parent 69f834a9e8
commit 8a8e8dc981

View File

@@ -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,
);