Fix clippy warnings unneeded returns

This commit is contained in:
Brandon Fish 2018-12-15 00:07:14 -06:00
parent 5b7f0f10dc
commit d405d8de41

View File

@ -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))
} }
} }