mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-12 00:41:32 +01:00
Remove a few unnecessary .into_iter() explicit calls, and some cloning.
See https://rust-lang.github.io/rust-clippy/master/#explicit_into_iter_loop
This commit is contained in:
committed by
Pratyush Mishra
parent
581f3df55f
commit
10c6e85c1a
@@ -102,7 +102,7 @@ where
|
||||
qs: &[Self::G2PreparedGadget],
|
||||
) -> Result<Self::GTGadget, SynthesisError> {
|
||||
let mut pairs = vec![];
|
||||
for (p, q) in ps.into_iter().zip(qs.into_iter()) {
|
||||
for (p, q) in ps.iter().zip(qs.iter()) {
|
||||
pairs.push((p, q.ell_coeffs.iter()));
|
||||
}
|
||||
let mut f = Self::GTGadget::one(cs.ns(|| "one"))?;
|
||||
|
||||
Reference in New Issue
Block a user