From 18760e9f9de7b3880a0ca7df97e36f01833459ba Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 24 May 2024 12:58:36 -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 0aaf00e9..a69e45fa 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -309,7 +309,7 @@ impl Zip32CentralDirectoryEnd { const END_WINDOW_SIZE: usize = 512; /* 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::CENTRAL_DIRECTORY_END_SIGNATURE.to_le_bytes();