Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs')
| -rw-r--r-- | crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs b/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs index 72f49657fb..042f31e5c4 100644 --- a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs +++ b/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs @@ -723,11 +723,11 @@ struct Foo { impl PartialOrd for Foo { $0fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { match self.bin.partial_cmp(&other.bin) { - Some(core::cmp::Ordering::Eq) => {} + Some(core::cmp::Ordering::Equal) => {} ord => return ord, } match self.bar.partial_cmp(&other.bar) { - Some(core::cmp::Ordering::Eq) => {} + Some(core::cmp::Ordering::Equal) => {} ord => return ord, } self.baz.partial_cmp(&other.baz) @@ -752,11 +752,11 @@ struct Foo(usize, usize, usize); impl PartialOrd for Foo { $0fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { match self.0.partial_cmp(&other.0) { - Some(core::cmp::Ordering::Eq) => {} + Some(core::cmp::Ordering::Equal) => {} ord => return ord, } match self.1.partial_cmp(&other.1) { - Some(core::cmp::Ordering::Eq) => {} + Some(core::cmp::Ordering::Equal) => {} ord => return ord, } self.2.partial_cmp(&other.2) |