mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Fix clippy warnings unneeded returns
This commit is contained in:
parent
5b7f0f10dc
commit
d405d8de41
@ -229,7 +229,7 @@ pub fn start_instance(module: &Module, instance: &mut Instance, path: &str, args
|
|||||||
|
|
||||||
let (argc, argv) = store_module_arguments(path, args, instance);
|
let (argc, argv) = store_module_arguments(path, args, instance);
|
||||||
|
|
||||||
return call_protected!(main(argc, argv, &instance)).map_err(|err| format!("{}", err));
|
call_protected!(main(argc, argv, &instance)).map_err(|err| format!("{}", err))
|
||||||
// TODO: We should implement emscripten __ATEXIT__
|
// TODO: We should implement emscripten __ATEXIT__
|
||||||
} else {
|
} else {
|
||||||
let func_index =
|
let func_index =
|
||||||
@ -241,6 +241,6 @@ pub fn start_instance(module: &Module, instance: &mut Instance, path: &str, args
|
|||||||
});
|
});
|
||||||
let main: extern "C" fn(&Instance) =
|
let main: extern "C" fn(&Instance) =
|
||||||
get_instance_function!(instance, func_index);
|
get_instance_function!(instance, func_index);
|
||||||
return call_protected!(main(&instance)).map_err(|err| format!("{}", err));
|
call_protected!(main(&instance)).map_err(|err| format!("{}", err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user