Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbaque committed Oct 24, 2023
1 parent dfe6ddc commit df97ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ impl Blake512 {
let mut m: [u64; 16] = [0; 16];
let mut j = 0;

for i in 0..16 {
m[i] = (u64::from(p[j]) << 56)
for mi in &mut m {
*mi = (u64::from(p[j]) << 56)
| (u64::from(p[j + 1]) << 48)
| (u64::from(p[j + 2]) << 40)
| (u64::from(p[j + 3]) << 32)
Expand Down

0 comments on commit df97ebc

Please sign in to comment.