Skip to content

Commit 930d3e0

Browse files
authored
Implement Clone for Drain (#2650)
1 parent baa6f30 commit 930d3e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

futures-util/src/sink/drain.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ pub fn drain<T>() -> Drain<T> {
3232

3333
impl<T> Unpin for Drain<T> {}
3434

35+
impl<T> Clone for Drain<T> {
36+
fn clone(&self) -> Self {
37+
drain()
38+
}
39+
}
40+
3541
impl<T> Sink<T> for Drain<T> {
3642
type Error = Infallible;
3743

0 commit comments

Comments
 (0)