Skip to content

Commit 98bff43

Browse files
committed
chore(c-api) Remove useless unsafe keywords.
1 parent 9a835a4 commit 98bff43

File tree

1 file changed

+2
-2
lines changed
  • lib/c-api/src/wasm_c_api/wasi

1 file changed

+2
-2
lines changed

lib/c-api/src/wasm_c_api/wasi/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub unsafe extern "C" fn wasi_get_unordered_imports(
409409
wasi_get_unordered_imports_inner(store, module, wasi_env, imports).is_some()
410410
}
411411

412-
unsafe fn wasi_get_unordered_imports_inner(
412+
fn wasi_get_unordered_imports_inner(
413413
store: Option<&wasm_store_t>,
414414
module: Option<&wasm_module_t>,
415415
wasi_env: Option<Box<wasi_env_t>>,
@@ -466,7 +466,7 @@ pub unsafe extern "C" fn wasi_get_imports(
466466
}
467467

468468
/// Takes ownership of `wasi_env_t`.
469-
unsafe fn wasi_get_imports_inner(
469+
fn wasi_get_imports_inner(
470470
store: Option<&wasm_store_t>,
471471
module: Option<&wasm_module_t>,
472472
wasi_env: Option<Box<wasi_env_t>>,

0 commit comments

Comments
 (0)