Skip to content

Commit 0d3a7f5

Browse files
committed
shorten collect trait bound
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent 5376b55 commit 0d3a7f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/stream/stream.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ pub trait Stream {
164164
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead (TODO)"]
165165
fn collect<'a, B: FromStream<<Self as Stream>::Item>>(self) -> dyn_ret!('a, B)
166166
where
167-
Self: Sized + Send + Unpin + 'a,
168-
Self: futures::stream::Stream,
167+
Self: futures::stream::Stream + Sized + Send + Unpin + 'a,
169168
B: FromStream<<Self as futures::stream::Stream>::Item>,
170169
{
171170
FromStream::from_stream(self)

0 commit comments

Comments
 (0)