Skip to content

Commit 262c484

Browse files
authored
k12: fix Clippy lint (#656)
1 parent a9b9677 commit 262c484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k12/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn pat_c() {
6363
hex!("75d2f86a2e644566726b4fbcfc5657b9dbcf070c7b0dca06450ab291d7443bcf"),
6464
];
6565
for i in 0..4 {
66-
let m: Vec<u8> = iter::repeat(0xFF).take(2usize.pow(i) - 1).collect();
66+
let m: Vec<u8> = iter::repeat_n(0xFF, 2usize.pow(i) - 1).collect();
6767
let len = 41usize.pow(i);
6868
let c: Vec<u8> = (0..len).map(|j| (j % 251) as u8).collect();
6969
let mut h = KangarooTwelve::from_core(KangarooTwelveCore::new(&c));

0 commit comments

Comments
 (0)