about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-09 13:54:36 +0000
committerbors <bors@rust-lang.org>2024-02-09 13:54:36 +0000
commitcdc3e83c2cb5fef611ef08506e2d7ba0b1656cc5 (patch)
treef70229fc925672c1a346b244967b3610c73bd97e /lib
parent65a644190dd77cb74c04e05b231a326c3f3a628d (diff)
parent1e4171bc6e4c47de88eb98f44837a733ef53ce57 (diff)
Auto merge of #16518 - tetsuharuohzeki:enable-some-minor-lints, r=Veykril
Enable some minor lints that we should tackles

This enables these lint rules that are commented as we should tackle at some points.

- non_canonical_clone_impl
- non_canonical_partial_ord_impl
- self_named_constructors
Diffstat (limited to 'lib')
-rw-r--r--lib/la-arena/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/la-arena/src/lib.rs b/lib/la-arena/src/lib.rs
index 1ded3b00a60..abde5deda4c 100644
--- a/lib/la-arena/src/lib.rs
+++ b/lib/la-arena/src/lib.rs
@@ -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))
     }
 }