Skip to content

Commit ed2217d

Browse files
committed
Now inline default 'ne' methods
1 parent babe20f commit ed2217d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/cmp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ and `Eq` to overload the `==` and `!=` operators.
3636
#[lang="eq"]
3737
pub trait Eq {
3838
fn eq(&self, other: &Self) -> bool;
39+
40+
#[inline]
3941
fn ne(&self, other: &Self) -> bool { !self.eq(other) }
4042
}
4143

0 commit comments

Comments
 (0)