Enable clippy::non_canonical_clone_impl (#9373)
This PR enables the [`clippy::non_canonical_clone_impl`](https://rust-lang.github.io/rust-clippy/master/index.html#/non_canonical_clone_impl) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user