C API: expose wasmtime_linker_get_one_by_name() (#1897)

* C API: expose wasmtime_linker_get_one_by_name()

* C API: remove unnecessary 'unsafe' qualifiers

* C API: avoid unnecessary mutable borrows of the Linker
This commit is contained in:
Thibault Charbonnier
2020-06-23 12:23:49 -07:00
committed by GitHub
parent 9751b96c5e
commit 8082aeaa5f
3 changed files with 41 additions and 6 deletions

View File

@@ -273,7 +273,7 @@ pub extern "C" fn wasm_func_as_extern(f: &mut wasm_func_t) -> &mut wasm_extern_t
}
#[no_mangle]
pub unsafe extern "C" fn wasmtime_caller_export_get(
pub extern "C" fn wasmtime_caller_export_get(
caller: &wasmtime_caller_t,
name: &wasm_name_t,
) -> Option<Box<wasm_extern_t>> {