From 91745d5d273485f81be276e7ee6a39497016c65f Mon Sep 17 00:00:00 2001 From: Lireer Date: Sun, 30 Jan 2022 15:28:50 +0100 Subject: [PATCH] use `assert_eq` instead of `debug_assert_eq` --- src/aes_ctr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aes_ctr.rs b/src/aes_ctr.rs index 44bcdb48..0f34335c 100644 --- a/src/aes_ctr.rs +++ b/src/aes_ctr.rs @@ -140,7 +140,7 @@ pub trait AesCipher { /// XORs a slice in place with another slice. #[inline] fn xor(dest: &mut [u8], src: &[u8]) { - debug_assert_eq!(dest.len(), src.len()); + assert_eq!(dest.len(), src.len()); for (lhs, rhs) in dest.iter_mut().zip(src.iter()) { *lhs ^= *rhs;