replace one .map_or(true, ...)
with .is_none_or(...)
This commit is contained in:
parent
942db6782f
commit
d4914a7719
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ where
|
|||
// Remove any trivial region constraints once we've resolved regions
|
||||
external_constraints
|
||||
.region_constraints
|
||||
.retain(|outlives| outlives.0.as_region().map_or(true, |re| re != outlives.1));
|
||||
.retain(|outlives| outlives.0.as_region().is_none_or(|re| re != outlives.1));
|
||||
|
||||
let canonical = Canonicalizer::canonicalize_response(
|
||||
self.delegate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue