[pack]: fixed typo that would cause to always return a full list of indices
Jean-Philippe Bossuat jeanphilippe.bossuat@gmail.com
Fri, 10 Jan 2025 11:59:15 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
M
math/src/ring/impl_u64/packing.rs
→
math/src/ring/impl_u64/packing.rs
@@ -55,7 +55,7 @@ let mut indices: Vec<usize> = Vec::<usize>::new();
// Retrives non-empty indexes polys.iter().enumerate().for_each(|(i, poly)| { - if Some(poly) != None { + if !poly.is_none() { indices.push(i); } });