Reorganize unsafe code.

This commit is contained in:
Dan Gohman
2018-12-08 15:28:33 -05:00
parent 7dcca6be5b
commit 10bb311aea
4 changed files with 20 additions and 23 deletions

View File

@@ -207,7 +207,7 @@ fn call_through_wrapper(
.as_ptr();
code.publish();
let func = unsafe { mem::transmute::<_, fn()>(exec_code_buf) };
let func: fn() = unsafe { mem::transmute(exec_code_buf) };
Ok(match call_wasm(func) {
Ok(()) => {