style: remove unneeded cast.

This commit is contained in:
Emilio Cobos Álvarez 2018-10-13 03:14:36 +02:00
parent 42def5a011
commit 2d9c764e2c
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -56,7 +56,7 @@ impl Angle {
/// quarter-turn for 225 degrees, for example. /// quarter-turn for 225 degrees, for example.
#[inline] #[inline]
pub fn radians64(&self) -> f64 { 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. /// Return the value in degrees.