Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Nov 11, 2024
1 parent a3c9013 commit 071656d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cairo-serde/src/types/u256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 071656d

Please sign in to comment.