diff --git a/crates/cairo-serde/src/types/u256.rs b/crates/cairo-serde/src/types/u256.rs index 9b04479..d518e95 100644 --- a/crates/cairo-serde/src/types/u256.rs +++ b/crates/cairo-serde/src/types/u256.rs @@ -73,9 +73,9 @@ impl BitOr for U256 { impl Display for U256 { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let mut num = BigUint::from(0u128); - num = num + BigUint::from(self.high); - num = num << 128; - num = num + BigUint::from(self.low); + num += BigUint::from(self.high); + num <<= 128; + num += BigUint::from(self.low); write!(f, "{}", num) } }