smol-rs / async-channel

Async multi-producer multi-consumer channel
Apache License 2.0
769 stars 39 forks source link

Manually implement `Clone` on `WeakSender/Receiver` #62

Closed tomaka closed 1 year ago

tomaka commented 1 year ago

Right now, WeakSender<T> and WeakReceiver<T> implement Clone only if T implements Clone as well.

It seems to me that this is an overlook and isn't actually intended.