diff options
| author | Eric Martin <e.a.martin1337@gmail.com> | 2013-08-30 22:02:24 -0400 |
|---|---|---|
| committer | Eric Martin <e.a.martin1337@gmail.com> | 2013-08-30 22:02:24 -0400 |
| commit | ed2217d7b677d5bfe1a2a1ba239e70047f8b6e6b (patch) | |
| tree | c98d6409cebc5071d49e4bf393eefb94e36af950 /src/libstd | |
| parent | babe20f018a1a92c3f1ece15cc5193e77d9c7ef9 (diff) | |
| download | rust-ed2217d7b677d5bfe1a2a1ba239e70047f8b6e6b.tar.gz rust-ed2217d7b677d5bfe1a2a1ba239e70047f8b6e6b.zip | |
Now inline default 'ne' methods
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/cmp.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs index 28d45abb688..4bfcf2ce92d 100644 --- a/src/libstd/cmp.rs +++ b/src/libstd/cmp.rs @@ -36,6 +36,8 @@ and `Eq` to overload the `==` and `!=` operators. #[lang="eq"] pub trait Eq { fn eq(&self, other: &Self) -> bool; + + #[inline] fn ne(&self, other: &Self) -> bool { !self.eq(other) } } |
