Skip to content

Commit c359092

Browse files
author
nnethercott
committed
revert clippy fix for this line
1 parent 5e1a138 commit c359092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ impl<'t, D: Distance> Reader<'t, D> {
347347
let key = Key::new(self.index, item);
348348
match self.database_get(rtxn, &key)?.ok_or(Error::missing_key(key))? {
349349
GenericReadNode::Leaf(_) => {
350-
if opt.candidates.is_none_or(|c| c.contains(item.item)) {
350+
if opt.candidates.map_or(true, |c| c.contains(item.item)) {
351351
nns.push(item.unwrap_item());
352352
}
353353
}

0 commit comments

Comments
 (0)