mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Use the ? operator for Option
This commit is contained in:
parent
c52d347022
commit
3005a26daf
13 changed files with 47 additions and 129 deletions
|
@ -339,12 +339,7 @@ impl PropertyAnimation {
|
|||
longhand,
|
||||
old_style,
|
||||
new_style,
|
||||
);
|
||||
|
||||
let animated_property = match animated_property {
|
||||
Some(p) => p,
|
||||
None => return None,
|
||||
};
|
||||
)?;
|
||||
|
||||
let property_animation = PropertyAnimation {
|
||||
property: animated_property,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue