Skip to content

Commit 333670a

Browse files
committed
Fix Clippy lints
1 parent 28ff104 commit 333670a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

streebog/src/core_api.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fn lps(h: &mut [u64; 8], n: &[u64; 8]) {
3636
}
3737

3838
let mut buf = [0u64; 8];
39+
#[allow(clippy::needless_range_loop)]
3940
for i in 0..8 {
4041
for j in 0..8 {
4142
let idx = (h[j] >> (8 * i) & 0xff) as usize;
@@ -50,7 +51,7 @@ fn g(h: &mut [u64; 8], n: &[u64; 8], m: &[u64; 8]) {
5051
let mut key = *h;
5152
let mut block = *m;
5253

53-
lps(&mut key, &n);
54+
lps(&mut key, n);
5455

5556
for c in &C64 {
5657
lps(&mut block, &key);

0 commit comments

Comments
 (0)