Skip to content

Commit 14b0b2e

Browse files
test(kyberlib): ✅ addresses the warning and simplifies the loop by directly iterating over the elements of out
1 parent 524278e commit 14b0b2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_symmetric.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ mod tests {
5858
kyber_shake128_squeezeblocks(&mut out, nblocks, &mut state);
5959
let outlen = out.len();
6060
let mut idx = 0;
61-
for i in 0..outlen {
62-
assert_ne!(out[i], 0);
61+
for &byte in out.iter() {
62+
assert_ne!(byte, 0);
6363
idx += 1;
6464
}
6565
assert_eq!(idx, outlen);

0 commit comments

Comments
 (0)