Fix clippy warnings

This commit is contained in:
ManyTheFish
2023-06-13 18:52:02 +02:00
parent 993b0d012c
commit 42709ea9a5
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ impl<'ctx> SearchContext<'ctx> {
}
pub fn searchable_attributes(&mut self, searchable_attributes: &'ctx [String]) -> Result<()> {
let fids_map = self.index.fields_ids_map(&self.txn)?;
let fids_map = self.index.fields_ids_map(self.txn)?;
let restricted_fids =
searchable_attributes.iter().filter_map(|name| fids_map.id(name)).collect();
self.restricted_fids = Some(restricted_fids);