Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions futures-util/src/stream/select_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<St: Stream + Unpin> SelectAll<St> {
/// function will not call `poll` on the submitted stream. The caller must
/// ensure that `SelectAll::poll` is called in order to receive task
/// notifications.
pub fn push(&mut self, stream: St) {
pub fn push(&self, stream: St) {
self.inner.push(stream.into_future());
}
}
Expand Down Expand Up @@ -118,7 +118,7 @@ pub fn select_all<I>(streams: I) -> SelectAll<I::Item>
where I: IntoIterator,
I::Item: Stream + Unpin
{
let mut set = SelectAll::new();
let set = SelectAll::new();

for stream in streams {
set.push(stream);
Expand Down