Skip to content

Commit

Permalink
Refactor to make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Jan 25, 2022
1 parent 5c6241b commit 9a33bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keccak/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const RC: [u64; 24] = [
pub fn f1600(a: &mut [u64; PLEN]) {
// not unrolling this loop results in a much smaller function, plus
// it positively influences performance due to the smaller load on I-cache
for i in 0..24 {
for rc in &RC {
let mut array = [0u64; 5];

// Theta
Expand Down Expand Up @@ -125,6 +125,6 @@ pub fn f1600(a: &mut [u64; PLEN]) {
});

// Iota
a[0] ^= RC[i];
a[0] ^= rc;
}
}

0 comments on commit 9a33bfd

Please sign in to comment.