std: add missing #[inline] annotation to the f64 arithmetic trait impls.

This commit is contained in:
Huon Wilson 2013-08-06 22:19:33 +10:00 committed by Corey Richardson
parent a185343fc4
commit 8460dac909
1 changed files with 4 additions and 0 deletions

View File

@ -278,18 +278,22 @@ impl One for f64 {
#[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))]