Skip to content

Commit 7b22139

Browse files
committed
review feedback
1 parent e3c3972 commit 7b22139

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

futures-util/src/stream/futures_ordered.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ impl<Fut: Future> FuturesOrdered<Fut> {
137137
/// task notifications.
138138
#[deprecated(note = "use `push_back` instead")]
139139
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);
140+
self.push_back(future);
143141
}
144142

145143
/// Pushes a future to the back of the queue.

0 commit comments

Comments
 (0)