mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Use map_or instead of map(..) == Some(false).
This commit is contained in:
parent
583d89ac08
commit
c4dbbf0656
1 changed files with 1 additions and 1 deletions
|
@ -607,7 +607,7 @@ fn substitute_one(
|
||||||
if invalid.contains(name) {
|
if invalid.contains(name) {
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
let computed_value = if specified_value.references.map(|set| set.is_empty()) == Some(false) {
|
let computed_value = if specified_value.references.map_or(false, |set| !set.is_empty()) {
|
||||||
let mut partial_computed_value = ComputedValue::empty();
|
let mut partial_computed_value = ComputedValue::empty();
|
||||||
let mut input = ParserInput::new(&specified_value.css);
|
let mut input = ParserInput::new(&specified_value.css);
|
||||||
let mut input = Parser::new(&mut input);
|
let mut input = Parser::new(&mut input);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue