Use deriving_eq for Task

This commit is contained in:
Tim Chevalier 2013-01-10 15:15:53 -08:00
parent 329a57882f
commit 603e13cc02

View File

@ -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.
*