From 4708d9b01633b88fa25baaafc4d6155631775578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Mon, 3 Apr 2023 10:09:27 +0200 Subject: [PATCH] Fix compiler warnings/errors --- milli/examples/search.rs | 1 + milli/src/search/new/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/milli/examples/search.rs b/milli/examples/search.rs index 1757c1c5b..ff7d564c6 100644 --- a/milli/examples/search.rs +++ b/milli/examples/search.rs @@ -52,6 +52,7 @@ fn main() -> Result<(), Box> { &(!query.trim().is_empty()).then(|| query.trim().to_owned()), // what a the from which when there is TermsMatchingStrategy::Last, + false, &None, &None, 0, diff --git a/milli/src/search/new/mod.rs b/milli/src/search/new/mod.rs index 4d2805fef..4d561d25b 100644 --- a/milli/src/search/new/mod.rs +++ b/milli/src/search/new/mod.rs @@ -37,7 +37,7 @@ use self::interner::Interner; use self::ranking_rules::{BoxRankingRule, RankingRule}; use self::resolve_query_graph::compute_query_graph_docids; use self::sort::Sort; -use crate::search::new::distinct::{apply_distinct_rule, DistinctOutput}; +use crate::search::new::distinct::apply_distinct_rule; use crate::{ AscDesc, Filter, Index, MatchingWords, Member, Result, SearchResult, TermsMatchingStrategy, UserError,