diff options
-rw-r--r-- | components/style/properties/helpers/animated_properties.mako.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 552f5b303c3..ad34f59dc89 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -329,8 +329,8 @@ impl Interpolate for CalcLengthOrPercentage { #[inline] fn interpolate(&self, other: &Self, time: f64) -> Result<Self, ()> { Ok(CalcLengthOrPercentage { - length: try!(self.length.interpolate(&other.length, time)), - percentage: try!(self.percentage.interpolate(&other.percentage, time)), + length: self.length.interpolate(&other.length, time).ok().and_then(|x|x), + percentage: self.percentage.interpolate(&other.percentage, time).ok().and_then(|x|x), }) } } |