mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Replace "map(..).unwrap_or(false)" with "is_some_and(..)" everywhere (#40244)
Testing: This change is a simple cleanup and should mostly be covered by existing tests. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
@@ -633,7 +633,7 @@ impl TestBindingMethods<crate::DomTypeHolder> for TestBinding {
|
||||
}
|
||||
|
||||
fn DictMatchesPassedValues(&self, arg: RootedTraceableBox<TestDictionary>) -> bool {
|
||||
arg.type_.as_ref().map(|s| s == "success").unwrap_or(false) &&
|
||||
arg.type_.as_ref().is_some_and(|s| s == "success") &&
|
||||
arg.nonRequiredNullable.is_none() &&
|
||||
arg.nonRequiredNullable2 == Some(None) &&
|
||||
arg.noCallbackImport.is_none() &&
|
||||
|
||||
Reference in New Issue
Block a user