poc-serde-support
Felipe Sere 5 years ago
parent 171cc82aed
commit fd09e2f248

@ -22,13 +22,11 @@ enum CycleState {
FromBuffer, FromBuffer,
} }
impl<S, T> Stream for Cycle<S,T> impl<S, T> Stream for Cycle<S, T>
where where
S: Stream<Item = T>, S: Stream<Item = T>,
T: Clone, T: Clone,
{ {
type Item = S::Item; type Item = S::Item;
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {

Loading…
Cancel
Save