[INFO] cloning repository https://github.com/msparsh13/MiniSearch
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/msparsh13/MiniSearch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsparsh13%2FMiniSearch", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsparsh13%2FMiniSearch'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f5e78056af6d516bba6ed0e29c1abdefaae99935
[INFO] checking msparsh13/MiniSearch against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsparsh13%2FMiniSearch" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/msparsh13/MiniSearch
[INFO] finished tweaking git repo https://github.com/msparsh13/MiniSearch
[INFO] tweaked toml for git repo https://github.com/msparsh13/MiniSearch written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/msparsh13/MiniSearch on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/msparsh13/MiniSearch already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ccb61de1770ed095850e9cb37cd7b174697d062fe87fd2768dbca63e53094c5e
[INFO] running `Command { std: "docker" "start" "-a" "ccb61de1770ed095850e9cb37cd7b174697d062fe87fd2768dbca63e53094c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ccb61de1770ed095850e9cb37cd7b174697d062fe87fd2768dbca63e53094c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ccb61de1770ed095850e9cb37cd7b174697d062fe87fd2768dbca63e53094c5e", kill_on_drop: false }`
[INFO] [stdout] ccb61de1770ed095850e9cb37cd7b174697d062fe87fd2768dbca63e53094c5e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 59360ff5b404b5be8c99767ac7b03bda6b73b98174a885ef11ff0e3e86edb9a5
[INFO] running `Command { std: "docker" "start" "-a" "59360ff5b404b5be8c99767ac7b03bda6b73b98174a885ef11ff0e3e86edb9a5", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]     Checking memchr v2.7.5
[INFO] [stderr]    Compiling autocfg v1.5.0
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]     Checking regex-syntax v0.8.6
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]     Checking ordered-float v3.9.2
[INFO] [stderr]     Checking regex-automata v0.4.10
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]     Checking regex v1.11.2
[INFO] [stderr]     Checking rust-stemmers v1.2.0
[INFO] [stderr]     Checking mini-opensearch-api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::ops::Bound::Included`
[INFO] [stdout]  --> src/index/b_tree.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Bound::Included;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::index::documents_store`
[INFO] [stdout]  --> src/index/documents_store.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::index::documents_store;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:3:36
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::index::inverted_index::{self, InvertedIndex};
[INFO] [stdout]   |                                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:4:34
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::index::n_gram_index::{self, NgramIndex};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:5:33
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::index::n_gram_trie::{self, NgramTrie};
[INFO] [stdout]   |                                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:6:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::index::tokenizer::{self, Tokenizer, TokenizerConfig};
[INFO] [stdout]   |                               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `inverted_index` and `storage::local_store`
[INFO] [stdout]   --> src/main.rs:8:9
[INFO] [stdout]    |
[INFO] [stdout]  8 |         inverted_index,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |     storage::local_store,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Bound::Included`
[INFO] [stdout]  --> src/index/b_tree.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Bound::Included;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::index::documents_store`
[INFO] [stdout]  --> src/index/documents_store.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::index::documents_store;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:3:36
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::index::inverted_index::{self, InvertedIndex};
[INFO] [stdout]   |                                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:4:34
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::index::n_gram_index::{self, NgramIndex};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:5:33
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::index::n_gram_trie::{self, NgramTrie};
[INFO] [stdout]   |                                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/index/documents_store.rs:6:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::index::tokenizer::{self, Tokenizer, TokenizerConfig};
[INFO] [stdout]   |                               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `inverted_index` and `storage::local_store`
[INFO] [stdout]   --> src/main.rs:8:9
[INFO] [stdout]    |
[INFO] [stdout]  8 |         inverted_index,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |     storage::local_store,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json`
[INFO] [stdout]    --> src/main.rs:191:9
[INFO] [stdout]     |
[INFO] [stdout] 191 |     let json = LocalStore::save(&store, "./data/data.json");
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_json`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `range_query_with_exclude` is never used
[INFO] [stdout]   --> src/index/b_tree.rs:72:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl ValueTreeIndex {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 72 |     pub fn range_query_with_exclude<'a>(
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `greater_than`, `greater_than_equal`, `less_than`, `less_than_equal`, `between`, and `ngram_bm25_old` are never used
[INFO] [stdout]    --> src/index/documents_store.rs:318:12
[INFO] [stdout]     |
[INFO] [stdout]  48 | impl DocumentStore {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub fn greater_than<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 334 |     pub fn greater_than_equal<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 345 |     pub fn less_than<'a>(
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 361 |     pub fn less_than_equal<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn between<'a>(
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 437 |     pub fn ngram_bm25_old(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/index/inverted_index.rs:55:12
[INFO] [stdout]     |
[INFO] [stdout]  19 | impl InvertedIndex {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  55 |     pub fn get_postings(&self, term: &str) -> Option<impl Iterator<Item = (&String, &Posting)>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  80 |     pub fn search_term_with_fields(&self, term: &str) -> Vec<(String, Vec<String>)> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  96 |     pub fn doc_freq(&self, term: &str) -> usize {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn remove_document(&mut self, doc_id: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn is_deleted(&self, doc_id: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub fn compact_index(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub fn search_term_in_field(&self, term: &str, field: &str) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub fn search_term_in_field_tree(&self, term: &str, field_prefix: &str) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 183 |     pub fn search_term_with_fields_short<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `insert` and `get_terms` are never used
[INFO] [stdout]   --> src/index/n_gram_index.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl NgramIndex {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn insert(&mut self, word: &str, term: &str) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn get_terms(&self, word: &str) -> Vec<String> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `get_terms_with_prefix` and `collect_terms` are never used
[INFO] [stdout]   --> src/index/n_gram_trie.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl NgramTrie {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn get_terms_with_prefix(&self, prefix: &str) -> Vec<String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn collect_terms(node: &TrieNode, result: &mut HashSet<String>) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `delete` is never used
[INFO] [stdout]   --> src/storage/local_store.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl LocalStore {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn delete(path: &str) -> std::io::Result<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/index/documents_store.rs:219:26
[INFO] [stdout]     |
[INFO] [stdout] 219 |             for grams in &tokenized_ngrams {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 219 -             for grams in &tokenized_ngrams {
[INFO] [stdout] 219 +             while let Some(grams) = &tokenized_ngrams {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 219 -             for grams in &tokenized_ngrams {
[INFO] [stdout] 219 +             if let Some(grams) = &tokenized_ngrams {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<std::string::String, Infallible>
[INFO] [stdout]    --> src/index/documents_store.rs:388:19
[INFO] [stdout]     |
[INFO] [stdout] 388 |             match doc_id_str.parse::<String>() {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json`
[INFO] [stdout]    --> src/main.rs:191:9
[INFO] [stdout]     |
[INFO] [stdout] 191 |     let json = LocalStore::save(&store, "./data/data.json");
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_json`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `range_query_with_exclude` is never used
[INFO] [stdout]   --> src/index/b_tree.rs:72:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl ValueTreeIndex {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 72 |     pub fn range_query_with_exclude<'a>(
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `greater_than`, `greater_than_equal`, `less_than`, `less_than_equal`, `between`, and `ngram_bm25_old` are never used
[INFO] [stdout]    --> src/index/documents_store.rs:318:12
[INFO] [stdout]     |
[INFO] [stdout]  48 | impl DocumentStore {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub fn greater_than<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 334 |     pub fn greater_than_equal<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 345 |     pub fn less_than<'a>(
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 361 |     pub fn less_than_equal<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn between<'a>(
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 437 |     pub fn ngram_bm25_old(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/index/inverted_index.rs:55:12
[INFO] [stdout]     |
[INFO] [stdout]  19 | impl InvertedIndex {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  55 |     pub fn get_postings(&self, term: &str) -> Option<impl Iterator<Item = (&String, &Posting)>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  80 |     pub fn search_term_with_fields(&self, term: &str) -> Vec<(String, Vec<String>)> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  96 |     pub fn doc_freq(&self, term: &str) -> usize {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn remove_document(&mut self, doc_id: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn is_deleted(&self, doc_id: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub fn compact_index(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub fn search_term_in_field(&self, term: &str, field: &str) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub fn search_term_in_field_tree(&self, term: &str, field_prefix: &str) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 183 |     pub fn search_term_with_fields_short<'a>(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `insert` and `get_terms` are never used
[INFO] [stdout]   --> src/index/n_gram_index.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl NgramIndex {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn insert(&mut self, word: &str, term: &str) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn get_terms(&self, word: &str) -> Vec<String> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `get_terms_with_prefix` and `collect_terms` are never used
[INFO] [stdout]   --> src/index/n_gram_trie.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl NgramTrie {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn get_terms_with_prefix(&self, prefix: &str) -> Vec<String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn collect_terms(node: &TrieNode, result: &mut HashSet<String>) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `delete` is never used
[INFO] [stdout]   --> src/storage/local_store.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl LocalStore {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn delete(path: &str) -> std::io::Result<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/index/documents_store.rs:219:26
[INFO] [stdout]     |
[INFO] [stdout] 219 |             for grams in &tokenized_ngrams {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 219 -             for grams in &tokenized_ngrams {
[INFO] [stdout] 219 +             while let Some(grams) = &tokenized_ngrams {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 219 -             for grams in &tokenized_ngrams {
[INFO] [stdout] 219 +             if let Some(grams) = &tokenized_ngrams {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<std::string::String, Infallible>
[INFO] [stdout]    --> src/index/documents_store.rs:388:19
[INFO] [stdout]     |
[INFO] [stdout] 388 |             match doc_id_str.parse::<String>() {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mini-opensearch-api` (bin "mini-opensearch-api") due to 1 previous error; 15 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `mini-opensearch-api` (bin "mini-opensearch-api" test) due to 1 previous error; 15 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "59360ff5b404b5be8c99767ac7b03bda6b73b98174a885ef11ff0e3e86edb9a5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "59360ff5b404b5be8c99767ac7b03bda6b73b98174a885ef11ff0e3e86edb9a5", kill_on_drop: false }`
[INFO] [stdout] 59360ff5b404b5be8c99767ac7b03bda6b73b98174a885ef11ff0e3e86edb9a5
