diff --git a/milli/src/index.rs b/milli/src/index.rs index 68014cc1a..77acd4cb8 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -1065,7 +1065,7 @@ impl Index { self.main.delete::<_, Str>(wtxn, main_key::NON_SEPARATOR_TOKENS_KEY) } - pub fn non_separator_tokens<'t>(&self, rtxn: &'t RoTxn) -> Result>> { + pub fn non_separator_tokens(&self, rtxn: &RoTxn) -> Result>> { Ok(self.main.get::<_, Str, SerdeBincode>>( rtxn, main_key::NON_SEPARATOR_TOKENS_KEY, @@ -1086,7 +1086,7 @@ impl Index { self.main.delete::<_, Str>(wtxn, main_key::SEPARATOR_TOKENS_KEY) } - pub fn separator_tokens<'t>(&self, rtxn: &'t RoTxn) -> Result>> { + pub fn separator_tokens(&self, rtxn: &RoTxn) -> Result>> { Ok(self .main .get::<_, Str, SerdeBincode>>(rtxn, main_key::SEPARATOR_TOKENS_KEY)?) @@ -1094,7 +1094,7 @@ impl Index { /* separators easing method */ - pub fn allowed_separators<'t>(&self, rtxn: &'t RoTxn) -> Result>> { + pub fn allowed_separators(&self, rtxn: &RoTxn) -> Result>> { let default_separators = charabia::separators::DEFAULT_SEPARATORS.iter().map(|s| s.to_string()); let mut separators: Option> = None; @@ -1126,7 +1126,7 @@ impl Index { self.main.delete::<_, Str>(wtxn, main_key::DICTIONARY_KEY) } - pub fn dictionary<'t>(&self, rtxn: &'t RoTxn) -> Result>> { + pub fn dictionary(&self, rtxn: &RoTxn) -> Result>> { Ok(self .main .get::<_, Str, SerdeBincode>>(rtxn, main_key::DICTIONARY_KEY)?) diff --git a/milli/src/update/settings.rs b/milli/src/update/settings.rs index a9db0490d..bdae5d7b4 100644 --- a/milli/src/update/settings.rs +++ b/milli/src/update/settings.rs @@ -497,7 +497,7 @@ impl<'a, 't, 'u, 'i> Settings<'a, 't, 'u, 'i> { // Does the new list differ from the previous one? if current.map_or(true, |current| ¤t != non_separator_tokens) { - self.index.put_non_separator_tokens(self.wtxn, &non_separator_tokens)?; + self.index.put_non_separator_tokens(self.wtxn, non_separator_tokens)?; Ok(true) } else { Ok(false) @@ -515,7 +515,7 @@ impl<'a, 't, 'u, 'i> Settings<'a, 't, 'u, 'i> { // Does the new list differ from the previous one? if current.map_or(true, |current| ¤t != separator_tokens) { - self.index.put_separator_tokens(self.wtxn, &separator_tokens)?; + self.index.put_separator_tokens(self.wtxn, separator_tokens)?; Ok(true) } else { Ok(false) @@ -533,7 +533,7 @@ impl<'a, 't, 'u, 'i> Settings<'a, 't, 'u, 'i> { // Does the new list differ from the previous one? if current.map_or(true, |current| ¤t != dictionary) { - self.index.put_dictionary(self.wtxn, &dictionary)?; + self.index.put_dictionary(self.wtxn, dictionary)?; Ok(true) } else { Ok(false)