Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jul 24, 2023
1 parent 5e67b82 commit 2b547e6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions utils/src/poseidon/poseidon_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,12 @@ impl PoseidonGrainLFSR {
assert!(is_field == 1);

// b0, b1 describes the field
if is_field == 1 {
state[1] = true;
} else {
state[1] = false;
}
state[1] = is_field == 1;

assert!(is_sbox_an_inverse == 0 || is_sbox_an_inverse == 1);

// b2, ..., b5 describes the S-BOX
if is_sbox_an_inverse == 1 {
state[5] = true;
} else {
state[5] = false;
}
state[5] = is_sbox_an_inverse == 1;

// b6, ..., b17 are the binary representation of n (prime_num_bits)
{
Expand Down

0 comments on commit 2b547e6

Please sign in to comment.