|
|
|
@ -37,10 +37,7 @@ impl Task {
|
|
|
|
|
pub fn compare(&self, other: &Self) -> Ordering {
|
|
|
|
|
if self.is_base() && other.is_custom() {
|
|
|
|
|
Ordering::Less
|
|
|
|
|
} else if self.is_custom() && other.is_base() {
|
|
|
|
|
Ordering::Greater
|
|
|
|
|
} else {
|
|
|
|
|
if self.order() > other.order() {
|
|
|
|
|
} else if self.is_custom() && other.is_base() || self.order() > other.order() {
|
|
|
|
|
Ordering::Greater
|
|
|
|
|
} else if self.order() < other.order() {
|
|
|
|
|
Ordering::Less
|
|
|
|
@ -49,7 +46,6 @@ impl Task {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl TaskTrait for Task {
|
|
|
|
|
#[inline]
|
|
|
|
|