From fa8d46d8ab37bc1d3220dc680b50eef87cd6ffac Mon Sep 17 00:00:00 2001 From: guorong009 Date: Fri, 17 May 2024 01:05:16 +0800 Subject: [PATCH] chore: fmt + clippy --- halo2_backend/src/plonk/verifier.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/halo2_backend/src/plonk/verifier.rs b/halo2_backend/src/plonk/verifier.rs index 9c692ade8c..d0e8650ac2 100644 --- a/halo2_backend/src/plonk/verifier.rs +++ b/halo2_backend/src/plonk/verifier.rs @@ -101,13 +101,11 @@ where }) .collect::, _>>()?; - for i in 0..instances.len() { - let mut affines = vec![ - ::Curve::identity(); - instances_projective[i].len() - ]; + for instance_projective in instances_projective { + let mut affines = + vec![::Curve::identity(); instance_projective.len()]; <::Curve as CurveAffine>::CurveExt::batch_normalize( - &instances_projective[i], + &instance_projective, &mut affines, ); instance_commitments.push(affines);