diff options
Diffstat (limited to 'src/libstd/workcache.rs')
| -rw-r--r-- | src/libstd/workcache.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs index 8b394443170..71151c33060 100644 --- a/src/libstd/workcache.rs +++ b/src/libstd/workcache.rs @@ -79,6 +79,7 @@ use serialization::{Serializer,Serializable, * */ +#[deriving_eq] struct WorkKey { kind: ~str, name: ~str @@ -100,15 +101,6 @@ impl WorkKey { } } -impl WorkKey: core::cmp::Eq { - pure fn eq(&self, other: &WorkKey) -> bool { - self.kind == other.kind && self.name == other.name - } - pure fn ne(&self, other: &WorkKey) -> bool { - self.kind != other.kind || self.name != other.name - } -} - type WorkMap = LinearMap<WorkKey, ~str>; struct Database { |
