slighty simplify a few boolean expressions (clippy::nonminimal_bool)

This commit is contained in:
Matthias Krüger 2023-04-01 23:55:22 +02:00
parent 5a07e33d2c
commit 73bd953dea
4 changed files with 4 additions and 5 deletions

View file

@ -389,7 +389,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
}
}
assert!(force || !finalize.is_some()); // `finalize` implies `force`
assert!(force || finalize.is_none()); // `finalize` implies `force`
// Make sure `self`, `super` etc produce an error when passed to here.
if orig_ident.is_path_segment_keyword() {