Remove more warnings

This commit is contained in:
Loïc Lecrenier
2023-03-23 09:41:18 +01:00
parent 7169d85115
commit d18ebe4f3a
4 changed files with 19 additions and 19 deletions

View File

@ -109,7 +109,8 @@ impl<'a> Search<'a> {
self
}
fn is_typo_authorized(&self) -> Result<bool> {
// TODO!
fn _is_typo_authorized(&self) -> Result<bool> {
let index_authorizes_typos = self.index.authorize_typos(self.rtxn)?;
// only authorize typos if both the index and the query allow it.
Ok(self.authorize_typos && index_authorizes_typos)