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:
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
|
||||
S: Stream<Item = T>,
|
||||
T: Clone,
|
||||
S: Stream,
|
||||
S::Item: Clone,
|
||||
{
|
||||
type Item = S::Item;
|
||||
|
||||
|
|
Loading…
Reference in a new issue