Skip to content

Commit

Permalink
clippy: Enable non_canonical_partial_ord_impl rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Feb 9, 2024
1 parent 2601d19 commit 1e4171b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/la-arena/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 1e4171b

Please sign in to comment.