From 848309a944b424149dd9d6980f2ca94ce3997951 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 24 May 2024 12:58:19 -0700 Subject: [PATCH] Switch to debug_assert! for an assert! involving only constants Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --- src/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spec.rs b/src/spec.rs index d4c61113..0aaf00e9 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -534,7 +534,7 @@ impl Zip64CentralDirectoryEnd { const END_WINDOW_SIZE: usize = 2048; /* TODO: use static_assertions!() */ - assert!(END_WINDOW_SIZE > mem::size_of::()); + debug_assert!(END_WINDOW_SIZE > mem::size_of::()); const SIG_BYTES: [u8; mem::size_of::()] = Magic::ZIP64_CENTRAL_DIRECTORY_END_SIGNATURE.to_le_bytes();