poc-serde-support
Felipe Sere 5 years ago
parent 5aadc5e4e9
commit ed5b095c73

@ -22,7 +22,7 @@ enum CycleState {
FromBuffer, FromBuffer,
} }
impl<T: Clone, S: Stream<Item = T>,> Cycle<S, T> { impl<T: Clone, S: Stream<Item = T>> Cycle<S, T> {
pub fn new(source: S) -> Cycle<S, T> { pub fn new(source: S) -> Cycle<S, T> {
Cycle { Cycle {
source, source,
@ -67,4 +67,3 @@ where
Poll::Ready(next) Poll::Ready(next)
} }
} }

Loading…
Cancel
Save