server: lint, including bug fix
This commit is contained in:
parent
6e15e69254
commit
f678338822
@ -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(())
|
||||
}
|
||||
|
||||
@ -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)?)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user