Switch to debug_assert! for an assert! involving only constants

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
Chris Hennick 2024-05-24 12:58:19 -07:00 committed by GitHub
parent 9722dd31e9
commit 848309a944
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -534,7 +534,7 @@ impl Zip64CentralDirectoryEnd {
const END_WINDOW_SIZE: usize = 2048;
/* TODO: use static_assertions!() */
assert!(END_WINDOW_SIZE > mem::size_of::<Magic>());
debug_assert!(END_WINDOW_SIZE > mem::size_of::<Magic>());
const SIG_BYTES: [u8; mem::size_of::<Magic>()] =
Magic::ZIP64_CENTRAL_DIRECTORY_END_SIGNATURE.to_le_bytes();