diff --git a/src/apis/emscripten/syscalls.rs b/src/apis/emscripten/syscalls.rs index 8ada6854d..51106b926 100644 --- a/src/apis/emscripten/syscalls.rs +++ b/src/apis/emscripten/syscalls.rs @@ -595,7 +595,7 @@ pub extern "C" fn ___syscall145( ret = ret + curr; } // debug!(" => ret: {}", ret); - return ret + ret } } @@ -631,7 +631,7 @@ pub extern "C" fn ___syscall146( ret = ret + curr; } // debug!(" => ret: {}", ret); - return ret + ret } } diff --git a/src/apis/emscripten/utils.rs b/src/apis/emscripten/utils.rs index c0f4e02ab..ba5277c60 100644 --- a/src/apis/emscripten/utils.rs +++ b/src/apis/emscripten/utils.rs @@ -14,7 +14,7 @@ pub fn is_emscripten_module(module: &Module) -> bool { return true; } } - return false; + false } pub unsafe fn copy_cstr_into_wasm(instance: &mut Instance, cstr: *const c_char) -> u32 { diff --git a/src/webassembly/instance.rs b/src/webassembly/instance.rs index 405345d0e..301125513 100644 --- a/src/webassembly/instance.rs +++ b/src/webassembly/instance.rs @@ -45,7 +45,7 @@ pub fn protect_codebuf(code_buf: &Vec) -> Result<(), String> { ) } { Err(err) => { - return Err(format!( + Err(format!( "failed to give executable permission to code: {}", err )) @@ -147,7 +147,7 @@ pub struct InstanceOptions { extern "C" fn mock_fn() -> i32 { debug!("CALLING MOCKED FUNC"); - return 0; + 0 } #[allow(dead_code)]