From 7167d30babd1013f3cec43c2939c0725a2477c73 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sun, 18 Oct 2026 13:33:14 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=E8=87=AA=E5=8A=A8=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_vm/src/dispatch/member.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/oxide_vm/src/dispatch/member.rs b/crates/oxide_vm/src/dispatch/member.rs index ee38a4cb..946d66c7 100644 --- a/crates/oxide_vm/src/dispatch/member.rs +++ b/crates/oxide_vm/src/dispatch/member.rs @@ -205,19 +205,25 @@ impl Vm { } } - fn member_op_f64(&mut self, prop_val: JsValue, rhs: JsValue, op: impl FnOnce(f64, f64) -> f64) -> Result { + fn member_op_f64( + &mut self, prop_val: JsValue, rhs: JsValue, op: impl FnOnce(f64, f64) -> f64, + ) -> Result { let ln = self.coerce_number_bounded(prop_val)?; let rn = self.coerce_number_bounded(rhs)?; Ok(JsValue::float(op(ln, rn))) } - fn member_op_i32(&mut self, prop_val: JsValue, rhs: JsValue, op: impl FnOnce(i32, i32) -> i32) -> Result { + fn member_op_i32( + &mut self, prop_val: JsValue, rhs: JsValue, op: impl FnOnce(i32, i32) -> i32, + ) -> Result { let ln = self.coerce_int32_bounded(prop_val)?; let rn = self.coerce_int32_bounded(rhs)?; Ok(JsValue::int(op(ln, rn))) } - fn member_op_shift(&mut self, prop_val: JsValue, rhs: JsValue, is_right: bool, is_unsigned: bool) -> Result { + fn member_op_shift( + &mut self, prop_val: JsValue, rhs: JsValue, is_right: bool, is_unsigned: bool, + ) -> Result { let ln = self.coerce_int32_bounded(prop_val)?; let shift = self.coerce_uint32_bounded(rhs)? & 0x1F; Ok(if !is_right {