]> git.lizzy.rs Git - rust.git/commitdiff
std: add missing #[inline] annotation to the f64 arithmetic trait impls.
authorHuon Wilson <dbau.pp+github@gmail.com>
Tue, 6 Aug 2013 12:19:33 +0000 (22:19 +1000)
committerCorey Richardson <corey@octayn.net>
Thu, 8 Aug 2013 02:41:14 +0000 (22:41 -0400)
src/libstd/num/f64.rs

index c7db60e6fd2649e772758ee26666c6eac513cfe1..60527905779f035296e8a126b7dfbe9b037677a0 100644 (file)
@@ -278,18 +278,22 @@ fn one() -> f64 { 1.0 }
 
 #[cfg(not(test))]
 impl Add<f64,f64> for f64 {
+    #[inline]
     fn add(&self, other: &f64) -> f64 { *self + *other }
 }
 #[cfg(not(test))]
 impl Sub<f64,f64> for f64 {
+    #[inline]
     fn sub(&self, other: &f64) -> f64 { *self - *other }
 }
 #[cfg(not(test))]
 impl Mul<f64,f64> for f64 {
+    #[inline]
     fn mul(&self, other: &f64) -> f64 { *self * *other }
 }
 #[cfg(not(test))]
 impl Div<f64,f64> for f64 {
+    #[inline]
     fn div(&self, other: &f64) -> f64 { *self / *other }
 }
 #[cfg(not(test))]