aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <hikezoe@mozilla.com>2017-05-12 19:29:08 +0900
committerHiroyuki Ikezoe <hikezoe@mozilla.com>2017-05-14 03:58:26 +0900
commit8061103594c093a6e6ba3eae25a948012fa6d167 (patch)
treea6c29a868cef5fd31eaaa622c6da70f282014f6c /ports
parentc53a8e8446d20571cda36224a93646426b786c8b (diff)
downloadservo-8061103594c093a6e6ba3eae25a948012fa6d167.tar.gz
servo-8061103594c093a6e6ba3eae25a948012fa6d167.zip
Use match instead of 'if let'.
Diffstat (limited to 'ports')
-rw-r--r--ports/geckolib/glue.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs
index d241ba216e6..a103f42049a 100644
--- a/ports/geckolib/glue.rs
+++ b/ports/geckolib/glue.rs
@@ -2209,10 +2209,9 @@ pub extern "C" fn Servo_StyleSet_FillKeyframesForName(raw_data: RawServoStyleSet
for step in &animation.steps {
// Override timing_function if the keyframe has animation-timing-function.
- let timing_function = if let Some(val) = step.get_animation_timing_function(&guard) {
- val.into()
- } else {
- *timing_function
+ let timing_function = match step.get_animation_timing_function(&guard) {
+ Some(val) => val.into(),
+ None => *timing_function,
};
let keyframe = unsafe {