mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge pull request #59 from zach297/master
removal of eq in TotalEq in rust@master
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user