Remove Unpin requirement for Slots (#6711)

This commit is contained in:
Pierre Krieger authored and GitHub committed 2020-07-27 14:31:35 +00:00
1 parent bead1becf0
commit 5af85552af
1 file changed
+4 -1
@@ -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> {
}