Skip to content

Commit

Permalink
chore(c-api) Remove useless unsafe keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Feb 1, 2021
1 parent 9a835a4 commit 98bff43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/c-api/src/wasm_c_api/wasi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ pub unsafe extern "C" fn wasi_get_unordered_imports(
wasi_get_unordered_imports_inner(store, module, wasi_env, imports).is_some()
}

unsafe fn wasi_get_unordered_imports_inner(
fn wasi_get_unordered_imports_inner(
store: Option<&wasm_store_t>,
module: Option<&wasm_module_t>,
wasi_env: Option<Box<wasi_env_t>>,
Expand Down Expand Up @@ -466,7 +466,7 @@ pub unsafe extern "C" fn wasi_get_imports(
}

/// Takes ownership of `wasi_env_t`.
unsafe fn wasi_get_imports_inner(
fn wasi_get_imports_inner(
store: Option<&wasm_store_t>,
module: Option<&wasm_module_t>,
wasi_env: Option<Box<wasi_env_t>>,
Expand Down

0 comments on commit 98bff43

Please sign in to comment.