From 29a02292aee04bce873d83a3c233bdfbb87c7736 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bossuat Date: Fri, 10 Jan 2025 11:59:15 +0100 Subject: [PATCH] [pack]: fixed typo that would cause to always return a full list of indices --- math/src/ring/impl_u64/packing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/src/ring/impl_u64/packing.rs b/math/src/ring/impl_u64/packing.rs index 4f62c22..3c5b772 100644 --- a/math/src/ring/impl_u64/packing.rs +++ b/math/src/ring/impl_u64/packing.rs @@ -55,7 +55,7 @@ impl Ring { // Retrives non-empty indexes polys.iter().enumerate().for_each(|(i, poly)| { - if Some(poly) != None { + if !poly.is_none() { indices.push(i); } });