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
|
@ -366,7 +366,7 @@ impl<O: ForestObligation> ObligationForest<O> {
|
|||
&& self
|
||||
.error_cache
|
||||
.get(&obligation_tree_id)
|
||||
.map_or(false, |errors| errors.contains(v.key()));
|
||||
.is_some_and(|errors| errors.contains(v.key()));
|
||||
|
||||
if already_failed {
|
||||
Err(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue