Skip to content

Commit

Permalink
chores: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hero78119 committed Jan 31, 2024
1 parent b45e327 commit efb09f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snark-verifier/src/loader/evm/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ impl<F: PrimeField<Repr = [u8; 0x20]>> ScalarLoader<F> for Rc<EvmLoader> {

let initial_value = loader.push(products.first().unwrap());
let mut code = format!("let prod := {initial_value}\n");
for (_, (value, product)) in values.iter().zip(products.iter()).skip(1).enumerate() {
for (value, product) in values.iter().zip(products.iter()).skip(1) {
let v = loader.push(value);
let ptr = product.ptr();
code.push_str(
Expand Down
2 changes: 1 addition & 1 deletion snark-verifier/src/pcs/kzg/multiopen/bdfg21.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ where
.zip(coeffs.iter())
.map(|(set, coeff)| set.msm(coeff, commitments, &powers_of_mu));

msms.zip(proof.gamma.powers(sets.len()).into_iter())
msms.zip(proof.gamma.powers(sets.len()))
.map(|(msm, power_of_gamma)| msm * &power_of_gamma)
.sum::<Msm<_, _>>()
- Msm::base(&proof.w) * &coeffs[0].z_s
Expand Down
2 changes: 1 addition & 1 deletion snark-verifier/src/util/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
.as_ref()
.map(|constant| (constant, gen.as_ref().unwrap())),
)
.chain(self.scalars.iter().zip(self.bases.into_iter()))
.chain(self.scalars.iter().zip(self.bases))
.collect_vec();
L::multi_scalar_multiplication(&pairs)
}
Expand Down

0 comments on commit efb09f9

Please sign in to comment.