Merge pull request #59 from zach297/master

removal of eq in TotalEq in rust@master
This commit is contained in:
Tony Aldridge
2014-03-25 12:34:40 +00:00
3 changed files with 2 additions and 12 deletions
-5
View File
@@ -37,11 +37,6 @@ impl TotalOrd for Key {
}
}
impl TotalEq for Key {
fn equals(&self, other: &Key) -> bool {
if self.code == other.code {
true
} else { false }
}
}
+1 -6
View File
@@ -37,11 +37,6 @@ impl TotalOrd for ScanCode {
}
}
impl TotalEq for ScanCode {
fn equals(&self, other: &ScanCode) -> bool {
if self.code == other.code {
true
} else { false }
}
}
fn ScanCode(code: uint, ident: &'static str) -> ScanCode {
@@ -321,7 +316,7 @@ use std::hash::sip::SipState;
use std::num::FromPrimitive;
use std::num::ToPrimitive;
#[deriving(Eq)]
#[deriving(Eq, TotalEq)]
pub enum ScanCode {
".as_bytes()));
for &entry in entries.iter() {
+1 -1
View File
@@ -6,7 +6,7 @@ use std::hash::sip::SipState;
use std::num::FromPrimitive;
use std::num::ToPrimitive;
#[deriving(Eq)]
#[deriving(Eq, TotalEq)]
pub enum ScanCode {
UnknownScanCode = 0,
AScanCode = 4,