diff options
| author | bors <bors@rust-lang.org> | 2024-02-09 13:54:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-09 13:54:36 +0000 |
| commit | cdc3e83c2cb5fef611ef08506e2d7ba0b1656cc5 (patch) | |
| tree | f70229fc925672c1a346b244967b3610c73bd97e /lib | |
| parent | 65a644190dd77cb74c04e05b231a326c3f3a628d (diff) | |
| parent | 1e4171bc6e4c47de88eb98f44837a733ef53ce57 (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.rs | 2 |
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)) } } |
