Skip to content

Commit

Permalink
Remove redundant collect in framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon-Ti committed Nov 23, 2024
1 parent 4083523 commit d1e2104
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions crates/prover/src/constraint_framework/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,14 @@ pub trait EvalAtRow {
&mut self,
entries: &[RelationEntry<'_, Self::F, Self::EF, R>],
) {
let fracs: Vec<Fraction<Self::EF, Self::EF>> = entries
.iter()
.map(
|RelationEntry {
relation,
multiplicity,
values,
}| {
Fraction::new(multiplicity.clone(), relation.combine(values))
},
)
.collect();
self.write_logup_frac(fracs.into_iter().sum());
let fracs = entries.iter().map(
|RelationEntry {
relation,
multiplicity,
values,
}| { Fraction::new(multiplicity.clone(), relation.combine(values)) },
);
self.write_logup_frac(fracs.sum());
}

// TODO(alont): Remove these once LogupAtRow is no longer used.
Expand Down

0 comments on commit d1e2104

Please sign in to comment.