mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Fix unneeded return statement
This commit is contained in:
parent
bd55552b4a
commit
a9d95b42c5
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user