diff --git a/Cargo.toml b/Cargo.toml index f6dc769635a0530cfe6c244f1b8e6f652e0d1ba8..041c3214a143fcd8d23c6328b2ae3a9de14f5118 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.rs index 486e758a3c9bba5240727c8561d36f3b4138dd83..cd1cdaffcccabf0cd308e60d491c54e4c881f8d8 100644 --- a/crates/rpc/src/peer.rs +++ b/crates/rpc/src/peer.rs @@ -63,11 +63,7 @@ pub struct Receipt { impl Clone for Receipt { fn clone(&self) -> Self { - Self { - sender_id: self.sender_id, - message_id: self.message_id, - payload_type: PhantomData, - } + *self } }