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
/// Rust issue [#60551].////// [#60551]: https://github.com/rust-lang/rust/issues/60551#[must_use]pubfn to_le_bytes<constBYTES:usize>(&self) -> [u8;BYTES]{// TODO: Use a `const {}` block for this assertionassert_eq!(BYTES, Self::BYTES, "BYTES must be equal to Self::BYTES");letmut bytes = [0;BYTES];#[cfg(target_endian = "little")]
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:94
The text was updated successfully, but these errors were encountered: