chore: Warnings & clippy hints

This commit is contained in:
Karolin Varner
2024-08-03 14:06:58 +02:00
parent 40c5bbd167
commit 54ac5eecdb
5 changed files with 13 additions and 5 deletions

View File

@@ -15,8 +15,7 @@ pub struct Input {
}
fuzz_target!(|input: Input| {
let mut ciphertext: Vec<u8> = Vec::with_capacity(input.plaintext.len() + 16);
ciphertext.resize(input.plaintext.len() + 16, 0);
let mut ciphertext = vec![0u8; input.plaintext.len() + 16];
aead::encrypt(
ciphertext.as_mut_slice(),