style: Use the ? operator for Option

This commit is contained in:
Matt Brubeck 2017-12-08 16:53:17 -08:00
parent c52d347022
commit 3005a26daf
13 changed files with 47 additions and 129 deletions

View file

@ -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,