Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed Jul 5, 2022
1 parent e3c3972 commit 7b22139
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions futures-util/src/stream/futures_ordered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ impl<Fut: Future> FuturesOrdered<Fut> {
/// task notifications.
#[deprecated(note = "use `push_back` instead")]
pub fn push(&mut self, future: Fut) {
let wrapped = OrderWrapper { data: future, index: self.next_incoming_index };
self.next_incoming_index += 1;
self.in_progress_queue.push(wrapped);
self.push_back(future);
}

/// Pushes a future to the back of the queue.
Expand Down

0 comments on commit 7b22139

Please sign in to comment.