chore: keep clippy green on stable Rust

This commit is contained in:
pandorafuture
2026-08-26 06:36:06 +00:00
parent 6c7fdda7db
commit 2abe708f55
+2 -2
View File
@@ -199,8 +199,8 @@ fn aes_ecb_decrypt(ciphertext: &[u8], key: &[u8; 16]) -> Result<Vec<u8>, MediaEr
let cipher = Aes128::new(key.into()); let cipher = Aes128::new(key.into());
let mut decrypted = ciphertext.to_vec(); let mut decrypted = ciphertext.to_vec();
for chunk in decrypted.chunks_exact_mut(16) { for chunk in decrypted.as_chunks_mut::<16>().0 {
cipher.decrypt_block(chunk.try_into().expect("chunk length mismatch")); cipher.decrypt_block(chunk.into());
} }
// PKCS7 unpadding // PKCS7 unpadding