From ed2217d7b677d5bfe1a2a1ba239e70047f8b6e6b Mon Sep 17 00:00:00 2001 From: Eric Martin Date: Fri, 30 Aug 2013 22:02:24 -0400 Subject: [PATCH] Now inline default 'ne' methods --- src/libstd/cmp.rs | 2 ++ 1 file changed, 2 insertions(+) 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) } }