mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
clippy: Enable non_canonical_partial_ord_impl
rule
This commit is contained in:
parent
2601d19bac
commit
1e4171bc6e
2 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue