We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
non_canonical_partial_ord_impl
1 parent 2601d19 commit 1e4171bCopy full SHA for 1e4171b
Cargo.toml
@@ -172,7 +172,6 @@ borrowed_box = "allow"
172
derived_hash_with_manual_eq = "allow"
173
forget_non_drop = "allow"
174
needless_doctest_main = "allow"
175
-non_canonical_partial_ord_impl = "allow"
176
too_many_arguments = "allow"
177
type_complexity = "allow"
178
wrong_self_convention = "allow"
lib/la-arena/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> Ord for Idx<T> {
70
71
impl<T> PartialOrd for Idx<T> {
72
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
73
- self.raw.partial_cmp(&other.raw)
+ Some(self.cmp(other))
74
}
75
76
0 commit comments