diff --git a/bitcoin/src/parse.rs b/bitcoin/src/parse.rs deleted file mode 100644 index e69de29b..00000000 diff --git a/units/src/parse.rs b/units/src/parse.rs index ba0b4b2c..76d78cf9 100644 --- a/units/src/parse.rs +++ b/units/src/parse.rs @@ -108,8 +108,8 @@ pub(crate) fn strip_hex_prefix(s: &str) -> &str { pub fn hex_u32 + Into>(s: S) -> Result { u32::from_str_radix(strip_hex_prefix(s.as_ref()), 16).map_err(|error| ParseIntError { input: s.into(), - bits: u8::try_from(core::mem::size_of::() * 8).expect("max is 32 bits for u32"), - is_signed: u32::try_from(-1i8).is_ok(), + bits: 32, + is_signed: false, source: error, }) }