Remove Unpin requirement for Slots (#6711)

This commit is contained in:
Pierre Krieger
2020-07-27 16:31:35 +02:00
committed by GitHub
parent bead1becf0
commit 5af85552af
@@ -109,7 +109,7 @@ impl<SC> Slots<SC> {
}
}
impl<SC: SlotCompatible + Unpin> Stream for Slots<SC> {
impl<SC: SlotCompatible> Stream for Slots<SC> {
type Item = Result<SlotInfo, Error>;
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>> {
@@ -165,3 +165,6 @@ impl<SC: SlotCompatible + Unpin> Stream for Slots<SC> {
}
}
}
impl<SC> Unpin for Slots<SC> {
}