Use deriving_eq for Task
This commit is contained in:
parent
329a57882f
commit
603e13cc02
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user