mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-15 09:51:21 +00:00
Remove unneeded returns
This commit is contained in:
@ -159,7 +159,7 @@ pub fn _system(_ctx: &mut Ctx, _one: i32) -> c_int {
|
|||||||
debug!("emscripten::_system");
|
debug!("emscripten::_system");
|
||||||
// TODO: May need to change this Em impl to a working version
|
// TODO: May need to change this Em impl to a working version
|
||||||
eprintln!("Can't call external programs");
|
eprintln!("Can't call external programs");
|
||||||
return EAGAIN;
|
EAGAIN
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn _popen(_ctx: &mut Ctx, _one: i32, _two: i32) -> c_int {
|
pub fn _popen(_ctx: &mut Ctx, _one: i32, _two: i32) -> c_int {
|
||||||
|
@ -345,7 +345,7 @@ pub fn _strftime(
|
|||||||
// pad for null?
|
// pad for null?
|
||||||
let bytes = result_str.chars().count();
|
let bytes = result_str.chars().count();
|
||||||
if bytes as u32 > maxsize {
|
if bytes as u32 > maxsize {
|
||||||
return 0;
|
0
|
||||||
} else {
|
} else {
|
||||||
// write output string
|
// write output string
|
||||||
for (i, c) in result_str.chars().enumerate() {
|
for (i, c) in result_str.chars().enumerate() {
|
||||||
|
Reference in New Issue
Block a user