Apparently #[derive(Clone)] adds a T: Clone bound. I noticed this while trying to use the mpmc queue with TcpStream. The tests all pass with this change, but I'm not sure if it's correct as far as the algorithm goes (it seems like it should be since the item is sent to only one receiver.)
Apparently
#[derive(Clone)]
adds aT: Clone
bound. I noticed this while trying to use the mpmc queue withTcpStream
. The tests all pass with this change, but I'm not sure if it's correct as far as the algorithm goes (it seems like it should be since the item is sent to only one receiver.)