You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2023-07-29 @prestwich wrote in aaa37d2 “Merge pull request #277 from DaniPopes/no_alloc”:
Use a const {} block for this assertion
/// Panics if the value is too large for the bit-size of the Uint.#[must_use]#[track_caller]#[inline]pubfn from_be_bytes<constBYTES:usize>(bytes:[u8;BYTES]) -> Self{// TODO: Use a `const {}` block for this assertionassert_eq!(BYTES, Self::BYTES, "BYTES must be equal to Self::BYTES");ifBYTES % 8 == 0{// Optimized implementation for full-limb types.letmut limbs = [0_u64;LIMBS];
On 2023-07-29 @prestwich wrote in
aaa37d2
“Merge pull request #277 from DaniPopes/no_alloc”:Use a
const {}
block for this assertionFrom
src/bytes.rs:240
The text was updated successfully, but these errors were encountered: