From dedc0c8b7023d1dc543e7421f68b9a29c3a986fd Mon Sep 17 00:00:00 2001 From: gustav-fff <286169375+gustav-fff@users.noreply.github.com> Date: Fri, 21 Aug 2026 09:33:54 -0700 Subject: [PATCH] chore(fff-core): use as_chunks in flush_seen clippy 1.98 added chunks_exact_to_as_chunks, which fails CI under -D warnings. SEEN_WORDS is a multiple of 8, so the remainder is always empty and the fixed-size chunk keeps codegen identical or better. --- crates/fff-core/src/index/bigram_filter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fff-core/src/index/bigram_filter.rs b/crates/fff-core/src/index/bigram_filter.rs index 6ce2a3193..cd6499ced 100644 --- a/crates/fff-core/src/index/bigram_filter.rs +++ b/crates/fff-core/src/index/bigram_filter.rs @@ -264,7 +264,8 @@ impl BigramIndexBuilder { fn flush_seen(&self, seen: &[u64; SEEN_WORDS], word_idx: usize, bit_mask: u64) { let col_base = self.col_data_ptr(); let words = self.words; - for (blk, block) in seen.chunks_exact(8).enumerate() { + // SEEN_WORDS is a multiple of 8, so the remainder is always empty. + for (blk, block) in seen.as_chunks::<8>().0.iter().enumerate() { // OR-test whole blocks so the mostly-empty bitmap scans fast. if block.iter().fold(0u64, |a, &w| a | w) == 0 { continue;