Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
puma314 committed Mar 8, 2024
1 parent d6b6996 commit 1f406e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plonky2x/core/src/frontend/hash/sha/sha256/pad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
}
}
// These checks verify input_byte_length <= input.len().
self.is_equal(message_byte_selector, false_t);
self.is_equal(reached_last_chunk, true_t);
self.assert_is_equal(message_byte_selector, false_t);
self.assert_is_equal(reached_last_chunk, true_t);

padded_bytes
}
Expand Down
4 changes: 2 additions & 2 deletions plonky2x/core/src/frontend/hash/sha/sha512/pad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
}
}
// These checks verify input_byte_length <= input.len().
self.is_equal(message_byte_selector, false_t);
self.is_equal(reached_last_chunk, true_t);
self.assert_is_equal(message_byte_selector, false_t);
self.assert_is_equal(reached_last_chunk, true_t);

padded_bytes
}
Expand Down

0 comments on commit 1f406e5

Please sign in to comment.