Run cargo fmt to clean up

This commit is contained in:
Brandon Fish 2018-12-15 01:17:55 -06:00
parent 914b20d01f
commit c6957a6287

View File

@ -231,7 +231,7 @@ pub fn start_instance(
let (argc, argv) = store_module_arguments(path, args, instance); let (argc, argv) = store_module_arguments(path, args, instance);
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 =
instance instance
@ -240,8 +240,7 @@ pub fn start_instance(
Some(&Export::Function(index)) => index, Some(&Export::Function(index)) => index,
_ => panic!("Main function not found"), _ => panic!("Main function not found"),
}); });
let main: extern "C" fn(&Instance) = let main: extern "C" fn(&Instance) = get_instance_function!(instance, func_index);
get_instance_function!(instance, func_index);
call_protected!(main(&instance)).map_err(|err| format!("{}", err)) call_protected!(main(&instance)).map_err(|err| format!("{}", err))
} }
} }