Skip to content

Commit

Permalink
Pacify clippy (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Dec 4, 2023
1 parent d682769 commit d28ba24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion evm/src/arithmetic/arithmetic_stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub(crate) const RANGE_MAX: usize = 1usize << 16; // Range check strict upper bo

impl<F: RichField, const D: usize> ArithmeticStark<F, D> {
/// Expects input in *column*-major layout
fn generate_range_checks(&self, cols: &mut Vec<Vec<F>>) {
fn generate_range_checks(&self, cols: &mut [Vec<F>]) {
debug_assert!(cols.len() == columns::NUM_ARITH_COLUMNS);

let n_rows = cols[0].len();
Expand Down
2 changes: 1 addition & 1 deletion evm/src/byte_packing/byte_packing_stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<F: RichField + Extendable<D>, const D: usize> BytePackingStark<F, D> {
}

/// Expects input in *column*-major layout
fn generate_range_checks(&self, cols: &mut Vec<Vec<F>>) {
fn generate_range_checks(&self, cols: &mut [Vec<F>]) {
debug_assert!(cols.len() == NUM_COLUMNS);

let n_rows = cols[0].len();
Expand Down
2 changes: 1 addition & 1 deletion evm/src/keccak_sponge/keccak_sponge_stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl<F: RichField + Extendable<D>, const D: usize> KeccakSpongeStark<F, D> {
}

/// Expects input in *column*-major layout
fn generate_range_checks(&self, cols: &mut Vec<Vec<F>>) {
fn generate_range_checks(&self, cols: &mut [Vec<F>]) {
debug_assert!(cols.len() == NUM_KECCAK_SPONGE_COLUMNS);

let n_rows = cols[0].len();
Expand Down

0 comments on commit d28ba24

Please sign in to comment.