We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c3972 commit 7b22139Copy full SHA for 7b22139
futures-util/src/stream/futures_ordered.rs
@@ -137,9 +137,7 @@ impl<Fut: Future> FuturesOrdered<Fut> {
137
/// task notifications.
138
#[deprecated(note = "use `push_back` instead")]
139
pub fn push(&mut self, future: Fut) {
140
- let wrapped = OrderWrapper { data: future, index: self.next_incoming_index };
141
- self.next_incoming_index += 1;
142
- self.in_progress_queue.push(wrapped);
+ self.push_back(future);
143
}
144
145
/// Pushes a future to the back of the queue.
0 commit comments