From 8c3f1a9c39620d26adaf1a7c3e25f1e1dc5dd133 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Wed, 17 Aug 2022 15:20:43 +0200 Subject: [PATCH] Remove useless lifetime declaration --- milli/src/search/criteria/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/milli/src/search/criteria/mod.rs b/milli/src/search/criteria/mod.rs index ae9e0c218..f48865ba5 100644 --- a/milli/src/search/criteria/mod.rs +++ b/milli/src/search/criteria/mod.rs @@ -293,13 +293,13 @@ impl<'t> CriteriaBuilder<'t> { } } -pub fn resolve_query_tree<'t>( - ctx: &'t dyn Context, +pub fn resolve_query_tree( + ctx: &dyn Context, query_tree: &Operation, wdcache: &mut WordDerivationsCache, ) -> Result { - fn resolve_operation<'t>( - ctx: &'t dyn Context, + fn resolve_operation( + ctx: &dyn Context, query_tree: &Operation, wdcache: &mut WordDerivationsCache, ) -> Result { @@ -342,7 +342,7 @@ pub fn resolve_query_tree<'t>( resolve_operation(ctx, query_tree, wdcache) } -pub fn resolve_phrase<'t>(ctx: &'t dyn Context, phrase: &[String]) -> Result { +pub fn resolve_phrase(ctx: &dyn Context, phrase: &[String]) -> Result { let mut candidates = RoaringBitmap::new(); let mut first_iter = true; let winsize = phrase.len().min(7);