Remove pointless debug_assert
This commit is contained in:
parent
8b3e901b35
commit
44397cc255
|
@ -88,8 +88,6 @@ fn create_hmac_engine(mnemonic: &[&'static str]) -> hmac::HmacEngine<sha512::Has
|
|||
// Method borrowed from rust-bitcoin's endian module.
|
||||
#[inline]
|
||||
fn u32_to_array_be(val: u32) -> [u8; 4] {
|
||||
debug_assert_eq!(::core::mem::size_of::<u32>(), 4); // size_of isn't a constfn in 1.22
|
||||
|
||||
let mut res = [0; 4];
|
||||
for i in 0..4 {
|
||||
res[i] = ((val >> (4 - i - 1)*8) & 0xff) as u8;
|
||||
|
|
Loading…
Reference in New Issue