clippy: Enable `non_canonical_partial_ord_impl` rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-09 22:42:16 +09:00
parent 2601d19bac
commit 1e4171bc6e
2 changed files with 1 additions and 2 deletions

View File

@ -172,7 +172,6 @@ borrowed_box = "allow"
derived_hash_with_manual_eq = "allow"
forget_non_drop = "allow"
needless_doctest_main = "allow"
non_canonical_partial_ord_impl = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
wrong_self_convention = "allow"

View File

@ -70,7 +70,7 @@ impl<T> Ord for Idx<T> {
impl<T> PartialOrd for Idx<T> {
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
self.raw.partial_cmp(&other.raw)
Some(self.cmp(other))
}
}