diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs index 6e908f25d..9b4b38f76 100755 --- a/milli/src/search/query_tree.rs +++ b/milli/src/search/query_tree.rs @@ -313,7 +313,7 @@ pub struct TypoConfig<'a> { /// Return the `QueryKind` of a word depending on `authorize_typos` /// and the provided word length. -fn typos(word: String, authorize_typos: bool, config: TypoConfig<'_>) -> QueryKind { +fn typos(word: String, authorize_typos: bool, config: TypoConfig) -> QueryKind { if authorize_typos && !config.exact_words.map_or(false, |s| s.contains(&word)) { let count = word.chars().count().min(u8::MAX as usize) as u8; if count < config.word_len_one_typo { diff --git a/milli/src/update/facets.rs b/milli/src/update/facets.rs index 0d7dcbc50..ae2a6d7fd 100644 --- a/milli/src/update/facets.rs +++ b/milli/src/update/facets.rs @@ -263,7 +263,7 @@ impl<'t, 'u, 'i> Facets<'t, 'u, 'i> { /// that must be inserted into the database. /// 2. a roaring bitmap of all the document ids present in the database fn compute_facet_number_levels( - rtxn: &'_ heed::RoTxn, + rtxn: &heed::RoTxn, db: heed::Database, compression_type: CompressionType, compression_level: Option,