Skip to content

Commit

Permalink
Update poly/src/polynomial/univariate/sparse.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Pratyush Mishra <[email protected]>
  • Loading branch information
tcoratger and Pratyush authored Nov 14, 2024
1 parent 8f1cf8f commit 121f82c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions poly/src/polynomial/univariate/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,7 @@ impl<F: Field> From<DensePolynomial<F>> for SparsePolynomial<F> {
.iter()
.enumerate()
.filter_map(|(i, coeff)| {
if !coeff.is_zero() {
Some((i, *coeff))
} else {
None
}
(!coeff.is_zero()).then((i, *coeff))

Check failure on line 313 in poly/src/polynomial/univariate/sparse.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

expected a `FnOnce()` closure, found `(usize, F)`

Check failure on line 313 in poly/src/polynomial/univariate/sparse.rs

View workflow job for this annotation

GitHub Actions / Check no_std

expected a `FnOnce()` closure, found `(usize, F)`

Check failure on line 313 in poly/src/polynomial/univariate/sparse.rs

View workflow job for this annotation

GitHub Actions / Test assembly

expected a `FnOnce()` closure, found `(usize, F)`
})
.collect(),
)
Expand Down

0 comments on commit 121f82c

Please sign in to comment.