Skip to content

Commit 7cccd82

Browse files
committed
poly-commitment: fix needless collect lint on stable clippy
1 parent d3a1054 commit 7cccd82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

poly-commitment/src/ipa.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,8 @@ where
582582
) -> PolyComm<G> {
583583
let basis = self.get_lagrange_basis(domain);
584584
let commit_evaluations = |evals: &Vec<G::ScalarField>, basis: &Vec<PolyComm<G>>| {
585-
PolyComm::<G>::multi_scalar_mul(&basis.iter().collect::<Vec<_>>()[..], &evals[..])
585+
let basis_refs: Vec<_> = basis.iter().collect();
586+
PolyComm::<G>::multi_scalar_mul(&basis_refs, evals)
586587
};
587588
match domain.size.cmp(&plnm.domain().size) {
588589
std::cmp::Ordering::Less => {

0 commit comments

Comments
 (0)