Skip to content

Commit

Permalink
chore: fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
guorong009 committed May 16, 2024
1 parent e41a6ae commit fa8d46d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions halo2_backend/src/plonk/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@ where
})
.collect::<Result<Vec<_>, _>>()?;

for i in 0..instances.len() {
let mut affines = vec![
<Scheme as CommitmentScheme>::Curve::identity();
instances_projective[i].len()
];
for instance_projective in instances_projective {
let mut affines =
vec![<Scheme as CommitmentScheme>::Curve::identity(); instance_projective.len()];
<<Scheme as CommitmentScheme>::Curve as CurveAffine>::CurveExt::batch_normalize(
&instances_projective[i],
&instance_projective,
&mut affines,
);
instance_commitments.push(affines);
Expand Down

0 comments on commit fa8d46d

Please sign in to comment.