Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::non_canonical_clone_impl` (#9373)
Marshall Bowersa92dcccf4867
diff --git a/Cargo.toml b/Cargo.tomlindex f6dc769635a..041c3214a14 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -415,7 +415,6 @@ arc_with_non_send_sync = "allow"borrowed_box = "allow"let_underscore_future = "allow"map_entry = "allow"-non_canonical_clone_impl = "allow"non_canonical_partial_ord_impl = "allow"reversed_empty_ranges = "allow"type_complexity = "allow"diff --git a/crates/rpc/src/peer.rs b/crates/rpc/src/peer.rsindex 486e758a3c9..cd1cdaffccc 100644--- a/crates/rpc/src/peer.rs+++ b/crates/rpc/src/peer.rs@@ -63,11 +63,7 @@ pub struct Receipt<T> {impl<T> Clone for Receipt<T> {fn clone(&self) -> Self {- Self {- sender_id: self.sender_id,- message_id: self.message_id,- payload_type: PhantomData,- }+ *self}}