use assert_eq instead of debug_assert_eq

This commit is contained in:
Lireer 2022-01-30 15:28:50 +01:00
parent 8f061f882b
commit 91745d5d27

View file

@ -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;