From bbd7e91d1c524b7d7f5b88c4e89cffe03c70b3ef Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Thu, 26 Sep 2019 13:30:20 -0700 Subject: [PATCH] Reformat code with new rustfmt (#28) --- src/microwasm.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/microwasm.rs b/src/microwasm.rs index 42d00e8..cf3002f 100644 --- a/src/microwasm.rs +++ b/src/microwasm.rs @@ -1174,12 +1174,8 @@ where sig!((ty) -> (ty)) } - WasmOperator::GetGlobal { global_index } => { - sig!(() -> (self.module.global_type(*global_index).to_microwasm_type())) - } - WasmOperator::SetGlobal { global_index } => { - sig!((self.module.global_type(*global_index).to_microwasm_type()) -> ()) - } + WasmOperator::GetGlobal { global_index } => sig!(() -> (self.module.global_type(*global_index).to_microwasm_type())), + WasmOperator::SetGlobal { global_index } => sig!((self.module.global_type(*global_index).to_microwasm_type()) -> ()), WasmOperator::F32Load { .. } => sig!((I32) -> (F32)), WasmOperator::F64Load { .. } => sig!((I32) -> (F64)), @@ -1258,12 +1254,8 @@ where | WasmOperator::F64Le | WasmOperator::F64Ge => sig!((F64, F64) -> (I32)), - WasmOperator::I32Clz | WasmOperator::I32Ctz | WasmOperator::I32Popcnt => { - sig!((I32) -> (I32)) - } - WasmOperator::I64Clz | WasmOperator::I64Ctz | WasmOperator::I64Popcnt => { - sig!((I64) -> (I64)) - } + WasmOperator::I32Clz | WasmOperator::I32Ctz | WasmOperator::I32Popcnt => sig!((I32) -> (I32)), + WasmOperator::I64Clz | WasmOperator::I64Ctz | WasmOperator::I64Popcnt => sig!((I64) -> (I64)), WasmOperator::I32Add | WasmOperator::I32Sub