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