Skip to content

Commit 57a6516

Browse files
committed
Make bounds on Stream impl simpler
1 parent fbd5bd8 commit 57a6516

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stream/stream/cycle.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ where
3737
}
3838
}
3939

40-
impl<S, T> Stream for Cycle<S, T>
40+
impl<S> Stream for Cycle<S, S::Item>
4141
where
42-
S: Stream<Item = T>,
43-
T: Clone,
42+
S: Stream,
43+
S::Item: Clone,
4444
{
4545
type Item = S::Item;
4646

0 commit comments

Comments
 (0)