Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed Jul 6, 2022
1 parent fc2acbb commit bad0f08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions futures-util/src/stream/futures_ordered.rs
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 bad0f08

Please sign in to comment.