Fix unneeded return statement

This commit is contained in:
Brandon Fish 2018-12-08 00:27:36 -06:00
parent bd55552b4a
commit a9d95b42c5
3 changed files with 5 additions and 5 deletions

View File

@ -595,7 +595,7 @@ pub extern "C" fn ___syscall145(
ret = ret + curr; ret = ret + curr;
} }
// debug!(" => ret: {}", ret); // debug!(" => ret: {}", ret);
return ret ret
} }
} }
@ -631,7 +631,7 @@ pub extern "C" fn ___syscall146(
ret = ret + curr; ret = ret + curr;
} }
// debug!(" => ret: {}", ret); // debug!(" => ret: {}", ret);
return ret ret
} }
} }

View File

@ -14,7 +14,7 @@ pub fn is_emscripten_module(module: &Module) -> bool {
return true; return true;
} }
} }
return false; false
} }
pub unsafe fn copy_cstr_into_wasm(instance: &mut Instance, cstr: *const c_char) -> u32 { pub unsafe fn copy_cstr_into_wasm(instance: &mut Instance, cstr: *const c_char) -> u32 {

View File

@ -45,7 +45,7 @@ pub fn protect_codebuf(code_buf: &Vec<u8>) -> Result<(), String> {
) )
} { } {
Err(err) => { Err(err) => {
return Err(format!( Err(format!(
"failed to give executable permission to code: {}", "failed to give executable permission to code: {}",
err err
)) ))
@ -147,7 +147,7 @@ pub struct InstanceOptions {
extern "C" fn mock_fn() -> i32 { extern "C" fn mock_fn() -> i32 {
debug!("CALLING MOCKED FUNC"); debug!("CALLING MOCKED FUNC");
return 0; 0
} }
#[allow(dead_code)] #[allow(dead_code)]