We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5376b55 commit 0d3a7f5Copy full SHA for 0d3a7f5
src/stream/stream.rs
@@ -164,8 +164,7 @@ pub trait Stream {
164
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead (TODO)"]
165
fn collect<'a, B: FromStream<<Self as Stream>::Item>>(self) -> dyn_ret!('a, B)
166
where
167
- Self: Sized + Send + Unpin + 'a,
168
- Self: futures::stream::Stream,
+ Self: futures::stream::Stream + Sized + Send + Unpin + 'a,
169
B: FromStream<<Self as futures::stream::Stream>::Item>,
170
{
171
FromStream::from_stream(self)
0 commit comments