Skip to content

Commit f484fd4

Browse files
committed
switch back to derived clone
1 parent 3235743 commit f484fd4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/encoder.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl AsyncRead for Encoder {
7878
// }
7979

8080
/// The sending side of the encoder.
81-
#[derive(Debug)]
81+
#[derive(Debug, Clone)]
8282
pub struct Sender(async_channel::Sender<Vec<u8>>);
8383

8484
/// Create a new SSE encoder.
@@ -132,9 +132,3 @@ impl Sender {
132132
Ok(())
133133
}
134134
}
135-
136-
impl Clone for Sender {
137-
fn clone(&self) -> Self {
138-
Self(self.0.clone())
139-
}
140-
}

0 commit comments

Comments
 (0)