server: lint, including bug fix

This commit is contained in:
Bill Thiede 2024-10-27 12:03:16 -07:00
parent 6e15e69254
commit f678338822
2 changed files with 1 additions and 2 deletions

View File

@ -241,7 +241,7 @@ impl fmt::Display for Email {
(Some(name), Some(addr)) => write!(f, "{name} <{addr}>")?,
(Some(name), None) => write!(f, "{name}")?,
(None, Some(addr)) => write!(f, "{addr}")?,
(None, name) => write!(f, "<UNKNOWN>")?,
(None, None) => write!(f, "<UNKNOWN>")?,
}
Ok(())
}

View File

@ -230,7 +230,6 @@ impl TantivyConnection {
}
info!("tantivy::count {query:?}");
use tantivy::collector::Count;
let term = query.remainder.join(" ");
let (searcher, query) = self.searcher_and_query(&query)?;
Ok(searcher.search(&query, &Count)?)
}