-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(CI): various minor changes for satisfying CI #432
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes for future me
@@ -358,6 +358,7 @@ impl PartialEq for JsspIndividual { | |||
impl Eq for JsspIndividual {} | |||
|
|||
impl PartialOrd for JsspIndividual { | |||
#[allow(clippy::incorrect_partial_ord_impl_on_ord_type)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lint is useless in our case, as we use PartialOrd
impl in Ord
impl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't really do this the other way around
examples/jssp/problem/probe.rs
Outdated
if a.finish_time < b.finish_time { | ||
Ordering::Less | ||
} else if a.finish_time > b.finish_time { | ||
Ordering::Greater | ||
} else if a.duration != 0 && b.duration != 0 { | ||
a.machine.cmp(&b.machine) | ||
} else if a.duration != 0 && b.duration == 0 { | ||
Ordering::Less | ||
} else { | ||
return Ordering::Greater; | ||
Ordering::Greater | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what should happen when:
- finish times are equal and both durations are 0
- finish times are equal and both durations are not equal and not 0
Description
Linked issues
Important implementation details