2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-19 20:13:51 +00:00

Make bounds on Stream impl simpler

This commit is contained in:
Felipe Sere 2019-11-01 23:28:07 -05:00
parent fbd5bd867d
commit 57a6516e63

View file

@ -37,10 +37,10 @@ where
} }
} }
impl<S, T> Stream for Cycle<S, T> impl<S> Stream for Cycle<S, S::Item>
where where
S: Stream<Item = T>, S: Stream,
T: Clone, S::Item: Clone,
{ {
type Item = S::Item; type Item = S::Item;