diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-07 12:06:02 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-07 12:24:48 -0700 |
| commit | feb014eb3c3aa1ccaae1df407801dffa090499fd (patch) | |
| tree | 8ffeec6945de4843f9e0d150720596327530e00f /src/libcore/uint-template.rs | |
| parent | ac1f84c153a171e641233e5d2d11404a0b520986 (diff) | |
rustc: Add an "ne" method to the Eq trait, and implement it everywhere
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index c54c8a8c5eb..01668edf3b6 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -69,9 +69,8 @@ impl T: Ord { } impl T: Eq { - pure fn eq(&&other: T) -> bool { - return self == other; - } + pure fn eq(&&other: T) -> bool { return self == other; } + pure fn ne(&&other: T) -> bool { return self != other; } } impl T: num::Num { |
