Bug 1498734 - remove unneeded cast. r=me
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 13 Oct 2018 03:14:36 +0200
changeset 489436 ebaf166c573104897304cf5b0143eba1bd2c8960
parent 489435 7584ce8674c21dfedc59ecc712eabb94306a2ba2
child 489437 b2dc8c549bc4bd48d05c6146c9b1daad0645f94e
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersme
bugs1498734
milestone64.0a1
Bug 1498734 - remove unneeded cast. r=me
servo/components/style/values/computed/angle.rs
--- a/servo/components/style/values/computed/angle.rs
+++ b/servo/components/style/values/computed/angle.rs
@@ -51,17 +51,17 @@ impl Angle {
     /// Returns the amount of radians this angle represents as a `f64`.
     ///
     /// Gecko stores angles as singles, but does this computation using doubles.
     ///
     /// This is significant enough to mess up rounding to the nearest
     /// quarter-turn for 225 degrees, for example.
     #[inline]
     pub fn radians64(&self) -> f64 {
-        self.0 as f64 * RAD_PER_DEG as f64
+        self.0 as f64 * RAD_PER_DEG
     }
 
     /// Return the value in degrees.
     #[inline]
     pub fn degrees(&self) -> CSSFloat {
         self.0
     }
 }