From 116ed866684a55bb5df6ab2fd8132575db4c88d1 Mon Sep 17 00:00:00 2001 From: Syrus Date: Tue, 18 Dec 2018 17:23:45 -0800 Subject: [PATCH] Improved formatting --- src/apis/emscripten/jmp.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/apis/emscripten/jmp.rs b/src/apis/emscripten/jmp.rs index 45f140404..f22624cc8 100644 --- a/src/apis/emscripten/jmp.rs +++ b/src/apis/emscripten/jmp.rs @@ -1,12 +1,8 @@ -use libc::{c_void, c_int}; use crate::webassembly::Instance; - +use libc::{c_int, c_void}; /// setjmp -pub extern "C" fn __setjmp( - env_addr: u32, - instance: &mut Instance, -) -> c_int { +pub extern "C" fn __setjmp(env_addr: u32, instance: &mut Instance) -> c_int { debug!("emscripten::__setjmp (setjmp)"); unsafe { let env = instance.memory_offset_addr(0, env_addr as usize) as *mut c_void; @@ -14,13 +10,8 @@ pub extern "C" fn __setjmp( } } - /// longjmp -pub extern "C" fn __longjmp( - env_addr: u32, - val: c_int, - instance: &mut Instance, -) -> ! { +pub extern "C" fn __longjmp(env_addr: u32, val: c_int, instance: &mut Instance) -> ! { debug!("emscripten::__longjmp (longjmp) {}", val); unsafe { let env = instance.memory_offset_addr(0, env_addr as usize) as *mut c_void;