Use Option::is_some_and
and Result::is_ok_and
in the compiler
This commit is contained in:
parent
70db836922
commit
fb0f74a8c9
87 changed files with 148 additions and 158 deletions
|
@ -469,7 +469,7 @@ impl Resolver<'_, '_> {
|
|||
.r
|
||||
.extern_prelude
|
||||
.get(&extern_crate.ident)
|
||||
.map_or(false, |entry| !entry.introduced_by_item)
|
||||
.is_some_and(|entry| !entry.introduced_by_item)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue