Skip to content

Commit

Permalink
Fix Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed May 21, 2024
1 parent 28ff104 commit 333670a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streebog/src/core_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn lps(h: &mut [u64; 8], n: &[u64; 8]) {
}

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

lps(&mut key, &n);
lps(&mut key, n);

for c in &C64 {
lps(&mut block, &key);
Expand Down

0 comments on commit 333670a

Please sign in to comment.