From c6957a62872ebaa094831c89ceaf0ae909e4761c Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sat, 15 Dec 2018 01:17:55 -0600 Subject: [PATCH] Run cargo fmt to clean up --- src/webassembly/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/webassembly/mod.rs b/src/webassembly/mod.rs index a94150d88..5c679ba48 100644 --- a/src/webassembly/mod.rs +++ b/src/webassembly/mod.rs @@ -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)) } }