aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/channel.rs
diff options
context:
space:
mode:
authorOliver Rockstedt <[email protected]>2024-05-21 22:59:39 +0200
committerOliver Rockstedt <[email protected]>2024-05-21 22:59:39 +0200
commit73e523ab14b69494e324ba09fec88bc5eb0b3d2d (patch)
tree19215336468093cadd7fdc8074ab34e9552596fd /embassy-sync/src/channel.rs
parent2da2e57b38e31059d752cc2e39ec3db96c8bb1d0 (diff)
embassy-sync: fixed some clippy warnings
Diffstat (limited to 'embassy-sync/src/channel.rs')
-rw-r--r--embassy-sync/src/channel.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-sync/src/channel.rs b/embassy-sync/src/channel.rs
index f9f71d026..b124a885f 100644
--- a/embassy-sync/src/channel.rs
+++ b/embassy-sync/src/channel.rs
@@ -42,7 +42,7 @@ where
42 M: RawMutex, 42 M: RawMutex,
43{ 43{
44 fn clone(&self) -> Self { 44 fn clone(&self) -> Self {
45 Sender { channel: self.channel } 45 *self
46 } 46 }
47} 47}
48 48
@@ -81,7 +81,7 @@ pub struct DynamicSender<'ch, T> {
81 81
82impl<'ch, T> Clone for DynamicSender<'ch, T> { 82impl<'ch, T> Clone for DynamicSender<'ch, T> {
83 fn clone(&self) -> Self { 83 fn clone(&self) -> Self {
84 DynamicSender { channel: self.channel } 84 *self
85 } 85 }
86} 86}
87 87
@@ -135,7 +135,7 @@ where
135 M: RawMutex, 135 M: RawMutex,
136{ 136{
137 fn clone(&self) -> Self { 137 fn clone(&self) -> Self {
138 Receiver { channel: self.channel } 138 *self
139 } 139 }
140} 140}
141 141
@@ -188,7 +188,7 @@ pub struct DynamicReceiver<'ch, T> {
188 188
189impl<'ch, T> Clone for DynamicReceiver<'ch, T> { 189impl<'ch, T> Clone for DynamicReceiver<'ch, T> {
190 fn clone(&self) -> Self { 190 fn clone(&self) -> Self {
191 DynamicReceiver { channel: self.channel } 191 *self
192 } 192 }
193} 193}
194 194