Skip to content

Commit 1909958

Browse files
committed
impl Clone for Sender
1 parent 5634a12 commit 1909958

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/encoder.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,9 @@ impl Sender {
125125
self.0.send(msg.into_bytes()).await;
126126
}
127127
}
128+
129+
impl Clone for Sender {
130+
fn clone(&self) -> Self {
131+
Self(self.0.clone())
132+
}
133+
}

0 commit comments

Comments
 (0)