Skip to content

Commit 1e4171b

Browse files
clippy: Enable non_canonical_partial_ord_impl rule
1 parent 2601d19 commit 1e4171b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ borrowed_box = "allow"
172172
derived_hash_with_manual_eq = "allow"
173173
forget_non_drop = "allow"
174174
needless_doctest_main = "allow"
175-
non_canonical_partial_ord_impl = "allow"
176175
too_many_arguments = "allow"
177176
type_complexity = "allow"
178177
wrong_self_convention = "allow"

lib/la-arena/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<T> Ord for Idx<T> {
7070

7171
impl<T> PartialOrd for Idx<T> {
7272
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
73-
self.raw.partial_cmp(&other.raw)
73+
Some(self.cmp(other))
7474
}
7575
}
7676

0 commit comments

Comments
 (0)