Skip to content

Commit 9af043e

Browse files
chore: remove unused std::iter imports
1 parent 6c9dfc5 commit 9af043e

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ have been removed to keep the changelog focused on Yeehaw's history.
2525
- remove long-running tests from CI.
2626
- drop coverage workflow from CI
2727
- remove outdated TODO for columnar `list_columns` and document error handling follow-up.
28+
- remove unused `std::iter` imports from test modules.

INVENTORY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ This document outlines the long term plan to rewrite this project so that it rel
4343
8. **Add contributor guidelines** *(done)*
4444
- Ported the `AGENTS.md` from `tribles-rust` and adapted it for this project.
4545
- Contributors must run `cargo fmt`, `cargo test` and `./scripts/preflight.sh` before committing.
46-
9. **Clean up unused imports**
47-
- `cargo test` reports several `unused import: std::iter` warnings that should be removed.
46+
9. **Clean up unused imports** *(done)*
47+
- Removed `unused import: std::iter` warnings from tests.
4848

4949
This inventory captures the direction of the rewrite and the major tasks required to make Yeehaw a Trible native search engine.
5050
10. **Rename remaining `Tantivy` prefixes**

src/collector/facet_collector.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ impl FacetCounts {
490490
#[cfg(test)]
491491
mod tests {
492492
use std::collections::BTreeSet;
493-
use std::iter;
494493

495494
use columnar::Dictionary;
496495
use rand::distributions::Uniform;

src/positions/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ const COMPRESSION_BLOCK_SIZE: usize = BitPacker4x::BLOCK_LEN;
4040

4141
#[cfg(test)]
4242
pub(crate) mod tests {
43-
44-
use std::iter;
45-
4643
use proptest::prelude::*;
4744
use proptest::sample::select;
4845

src/query/boolean_query/block_wand.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ fn is_sorted<I: Iterator<Item = DocId>>(mut it: I) -> bool {
302302
mod tests {
303303
use std::cmp::Ordering;
304304
use std::collections::BinaryHeap;
305-
use std::iter;
306305

307306
use proptest::prelude::*;
308307

src/tokenizer/ascii_folding_filter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,6 @@ fn to_ascii(text: &str, output: &mut String) {
15611561

15621562
#[cfg(test)]
15631563
mod tests {
1564-
use std::iter;
1565-
15661564
use super::to_ascii;
15671565
use crate::tokenizer::{AsciiFoldingFilter, RawTokenizer, SimpleTokenizer, TextAnalyzer};
15681566

0 commit comments

Comments
 (0)