Browse Source

zk/gadgets: Fix clippy lint

x 2 weeks ago
parent
commit
635ccbefea
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/zk/gadget/native_range_check.rs

+ 3 - 1
src/zk/gadget/native_range_check.rs

@@ -154,7 +154,9 @@ impl<const WINDOW_SIZE: usize, const NUM_BITS: usize> NativeRangeCheckChip<WINDO
             .chain(std::iter::repeat_n(false, WINDOW_SIZE - (NUM_BITS % WINDOW_SIZE)))
             .collect();
 
-        bits.chunks_exact(WINDOW_SIZE)
+        bits.as_chunks::<WINDOW_SIZE>()
+            .0
+            .iter()
             .map(|x| {
                 // Because bits <= WINDOW_SIZE * NUM_BITS, the last window may be
                 // smaller than WINDOW_SIZE.