From d405d8de414ee749023387fb1cfa1b01263a5466 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sat, 15 Dec 2018 00:07:14 -0600 Subject: [PATCH] Fix clippy warnings unneeded returns --- src/webassembly/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webassembly/mod.rs b/src/webassembly/mod.rs index 7a002d8fa..31eb4d979 100644 --- a/src/webassembly/mod.rs +++ b/src/webassembly/mod.rs @@ -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); - 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__ } else { 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) = 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)) } }