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();