Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wakiyamap committed Jun 28, 2024
1 parent 10157a0 commit 5d8a710
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bmw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ pub fn sum(input: Vec<u8>) -> Vec<u8> {
buf.push(0);
}
}
buf[input.len() as usize] = 0x80;
buf[input.len()] = 0x80;
let bit_len = ((input.len() as u64) << 3).to_le_bytes();
buf[56] = bit_len[0];
buf[57] = bit_len[1];
Expand Down
2 changes: 1 addition & 1 deletion src/lyra2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ pub fn lyra2(

let row_len_int64: i64 = BLOCKLENINT64 * n_cols as i64;
let mut _i: i64 = n_rows as i64 * row_len_int64;
let mut whole_matrix: Vec<u64> = Vec::new();
let mut whole_matrix: Vec<u64> = vec![0; _i as usize];
whole_matrix.resize(_i as usize, 0);

//==========================================================================/
Expand Down
2 changes: 1 addition & 1 deletion src/lyra2mod/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub fn lyra2mod(

let row_len_int64: i64 = BLOCKLENINT64 * n_cols as i64;
let mut _i: i64 = n_rows as i64 * row_len_int64;
let mut whole_matrix: Vec<u64> = Vec::new();
let mut whole_matrix: Vec<u64> = vec![0; _i as usize];
whole_matrix.resize(_i as usize, 0);

//==========================================================================/
Expand Down

0 comments on commit 5d8a710

Please sign in to comment.