Skip to content

Commit 8d2f385

Browse files
TennyZhuangtaiki-e
authored andcommitted
Remove some double trait bounds (#2645)
Signed-off-by: TennyZhuang <[email protected]>
1 parent 0118f5c commit 8d2f385

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

futures-util/src/stream/stream/buffer_unordered.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ where
4141
St: Stream,
4242
St::Item: Future,
4343
{
44-
pub(super) fn new(stream: St, n: usize) -> Self
45-
where
46-
St: Stream,
47-
St::Item: Future,
48-
{
44+
pub(super) fn new(stream: St, n: usize) -> Self {
4945
Self {
5046
stream: super::Fuse::new(stream),
5147
in_progress_queue: FuturesUnordered::new(),

futures-util/src/stream/stream/chunks.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ pin_project! {
2121
}
2222
}
2323

24-
impl<St: Stream> Chunks<St>
25-
where
26-
St: Stream,
27-
{
24+
impl<St: Stream> Chunks<St> {
2825
pub(super) fn new(stream: St, capacity: usize) -> Self {
2926
assert!(capacity > 0);
3027

futures-util/src/stream/stream/ready_chunks.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ pin_project! {
2020
}
2121
}
2222

23-
impl<St: Stream> ReadyChunks<St>
24-
where
25-
St: Stream,
26-
{
23+
impl<St: Stream> ReadyChunks<St> {
2724
pub(super) fn new(stream: St, capacity: usize) -> Self {
2825
assert!(capacity > 0);
2926

0 commit comments

Comments
 (0)