SimpleSlotWorker: Do not implement `SlotWorker` for all types implementing...
SimpleSlotWorker: Do not implement `SlotWorker` for all types implementing `SimpleSlotWorker` (#10934) Because Rust currently doesn't support specialization, it prevents users from implementing `SlotWorker` for their own types. This pr solves this by removing the generic implementation of `SlotWorker` for `SimpleSlotWorker` and providing some wrapper type for that.
parent
f3e9c0af
Showing
- substrate/client/consensus/aura/src/lib.rs 2 additions, 2 deletionssubstrate/client/consensus/aura/src/lib.rs
- substrate/client/consensus/babe/src/lib.rs 1 addition, 1 deletionsubstrate/client/consensus/babe/src/lib.rs
- substrate/client/consensus/slots/src/lib.rs 10 additions, 3 deletionssubstrate/client/consensus/slots/src/lib.rs
Please register or sign in to comment