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:
parent
fbd5bd867d
commit
57a6516e63
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue