diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-10 15:15:53 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-10 15:35:41 -0800 |
| commit | 603e13cc02cd262f8612676f124edc986bf9caa9 (patch) | |
| tree | 1d47ab3ae388e9e0cf9477706530ee32beba72be /src/libcore/task | |
| parent | 329a57882f813a0d77500aa499426882e9ef3dbb (diff) | |
| download | rust-603e13cc02cd262f8612676f124edc986bf9caa9.tar.gz rust-603e13cc02cd262f8612676f124edc986bf9caa9.zip | |
Use deriving_eq for Task
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 62d30bdc45c..760a92346d2 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -63,16 +63,11 @@ pub mod rt; pub mod spawn; /// A handle to a task +#[deriving_eq] pub enum Task { TaskHandle(task_id) } -// XXX: deriving -impl Task : cmp::Eq { - pure fn eq(&self, other: &Task) -> bool { *(*self) == *(*other) } - pure fn ne(&self, other: &Task) -> bool { !(*self).eq(other) } -} - /** * Indicates the manner in which a task exited. * |
