schets / multiqueue

A fast mpmc queue with broadcast capabilities
MIT License
201 stars 29 forks source link

Manually implement `Clone` for `MPMCFut*` types #9

Closed abonander closed 7 years ago

abonander commented 7 years ago

#[derive(Clone)] infers a _: Clone bound for all parameters on the type, which (generally) is a safe default but is too restrictive for cases like this. That restriction might be lifted at some point (rust-lang/rust#40754) but for now, a manual Clone impl works better.