Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Nov 14, 2024
1 parent 121f82c commit be3b9ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions poly/src/polynomial/univariate/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,7 @@ impl<F: Field> From<DensePolynomial<F>> for SparsePolynomial<F> {
.coeffs()
.iter()
.enumerate()
.filter_map(|(i, coeff)| {
(!coeff.is_zero()).then((i, *coeff))
})
.filter_map(|(i, coeff)| (!coeff.is_zero()).then(|| (i, *coeff)))
.collect(),
)
}
Expand Down

0 comments on commit be3b9ea

Please sign in to comment.