Skip to content

Commit

Permalink
test(kyberlib): ✅ addresses the warning and simplifies the loop by di…
Browse files Browse the repository at this point in the history
…rectly iterating over the elements of out
  • Loading branch information
sebastienrousseau committed May 8, 2024
1 parent 524278e commit 14b0b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_symmetric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ mod tests {
kyber_shake128_squeezeblocks(&mut out, nblocks, &mut state);
let outlen = out.len();
let mut idx = 0;
for i in 0..outlen {
assert_ne!(out[i], 0);
for &byte in out.iter() {
assert_ne!(byte, 0);
idx += 1;
}
assert_eq!(idx, outlen);
Expand Down

0 comments on commit 14b0b2e

Please sign in to comment.