2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-01 07:39:40 +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
S: Stream<Item = T>,
T: Clone,
S: Stream,
S::Item: Clone,
{
type Item = S::Item;