Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Nov 8, 2023
1 parent 3eedcef commit 5337ddc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ethers-core/src/types/serde_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ impl TryFrom<StringifiedNumeric> for U64 {
let value = U256::try_from(value)?;
let mut be_bytes = [0u8; 32];
value.to_big_endian(&mut be_bytes);
U64::try_from(&be_bytes[value.leading_zeros() as usize / 8..])
.map_err(|err| err.to_string())
Ok(U64::from(&be_bytes[value.leading_zeros() as usize / 8..]))
}
}

Expand Down

0 comments on commit 5337ddc

Please sign in to comment.