Skip to content

Commit 7cb0c63

Browse files
committed
std: add missing #[inline] annotation to the f64 neg method.
This was, somehow, missed by #8332.
1 parent 2a706aa commit 7cb0c63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/num/f64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ impl Rem<f64,f64> for f64 {
307307
}
308308
#[cfg(not(test))]
309309
impl Neg<f64> for f64 {
310+
#[inline]
310311
fn neg(&self) -> f64 { -*self }
311312
}
312313

0 commit comments

Comments
 (0)