diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2017-12-08 16:53:17 -0800 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2017-12-09 08:29:53 -0800 |
commit | 3005a26dafe35fef21c970940f17c75e17a49a4c (patch) | |
tree | 88ec81b41c3ae34d09c7f199a8e7a5b442fb43dc /components/style/animation.rs | |
parent | c52d347022df0dbff871ce2bd70c0c2e3f4fb7c9 (diff) | |
download | servo-3005a26dafe35fef21c970940f17c75e17a49a4c.tar.gz servo-3005a26dafe35fef21c970940f17c75e17a49a4c.zip |
style: Use the ? operator for Option
Diffstat (limited to 'components/style/animation.rs')
-rw-r--r-- | components/style/animation.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/style/animation.rs b/components/style/animation.rs index a324fa99ea9..7fc57c22f72 100644 --- a/components/style/animation.rs +++ b/components/style/animation.rs @@ -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, |