Skip to content

Commit d411873

Browse files
committed
Change is_some_and to take by value
1 parent a429148 commit d411873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stacked_borrows/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl<'tcx> Stack {
211211
}
212212

213213
// Couldn't find it in the stack; but if there is an unknown bottom it might be there.
214-
let found = self.unknown_bottom.is_some_and(|&unknown_limit| {
214+
let found = self.unknown_bottom.is_some_and(|unknown_limit| {
215215
tag.0 < unknown_limit.0 // unknown_limit is an upper bound for what can be in the unknown bottom.
216216
});
217217
if found { Ok(None) } else { Err(()) }

0 commit comments

Comments
 (0)