Skip to content

Commit

Permalink
clippy auto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyong1997 committed Feb 25, 2025
1 parent 85bace6 commit 974e3b7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gkr/src/tests/gkr_correctness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::panic::AssertUnwindSafe;
use std::time::Instant;
use std::{fs, panic};

use arith::{Field, FieldSerde, SimdField};
use circuit::{Circuit, CircuitLayer, CoefType, GateConst, GateUni};
use arith::{Field, FieldSerde};
use circuit::Circuit;
use config::{Config, FiatShamirHashType, GKRConfig, GKRScheme, PolynomialCommitmentType};
use config_macros::declare_gkr_config;
use field_hashers::{MiMC5FiatShamirHasher, PoseidonFiatShamirHasher};
Expand Down
2 changes: 1 addition & 1 deletion poly_commit/src/orion/base_field_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ where
let mut interleaved_codewords: Vec<_> = poly
.coeffs
.chunks(msg_size)
.flat_map(|msg| orion_srs.code_instance.encode(&msg).unwrap())
.flat_map(|msg| orion_srs.code_instance.encode(msg).unwrap())
.collect();

let mut scratch = vec![F::ZERO; row_num * orion_srs.codeword_len()];
Expand Down
2 changes: 1 addition & 1 deletion poly_commit/src/orion/simd_field_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ where
let mut interleaved_codewords: Vec<_> = poly
.coeffs
.chunks(msg_size)
.flat_map(|msg| orion_srs.code_instance.encode(&msg).unwrap())
.flat_map(|msg| orion_srs.code_instance.encode(msg).unwrap())
.collect();

let mut scratch = vec![SimdF::ZERO; row_num * orion_srs.codeword_len()];
Expand Down
2 changes: 1 addition & 1 deletion poly_commit/src/orion/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ mod tests {
let mut table = SubsetSumLUTs::new(8, 1);
table.build(&weights);

let actual_lut_inner_prod = table.lookup_and_sum(&vec![simd_bases]);
let actual_lut_inner_prod = table.lookup_and_sum(&[simd_bases]);

assert_eq!(expected_simd_inner_prod, actual_lut_inner_prod)
}
Expand Down
4 changes: 2 additions & 2 deletions poly_commit/tests/test_hyrax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ fn test_hyrax_for_expander_gkr_generics(mpi_config_ref: &MPIConfig, total_num_va
HyraxPCS<G1Affine, BytesHashTranscript<BN254Fr, Keccak256hasher>>,
>(
&num_vars_in_each_poly,
&mpi_config_ref,
mpi_config_ref,
&mut transcript,
&local_poly,
&vec![challenge_point],
&[challenge_point],
);
}

Expand Down
4 changes: 2 additions & 2 deletions poly_commit/tests/test_orion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ fn test_orion_for_expander_gkr_generics<C, ComPackF, T>(
OrionSIMDFieldPCS<C::CircuitField, C::SimdCircuitField, C::ChallengeField, ComPackF, T>,
>(
&num_vars_in_each_poly,
&mpi_config_ref,
mpi_config_ref,
&mut transcript,
&local_poly,
&vec![challenge_point],
&[challenge_point],
);
}

Expand Down

0 comments on commit 974e3b7

Please sign in to comment.