From 6c1dc9eca87366d7cf1e82fc68ccc3801b0f40f1 Mon Sep 17 00:00:00 2001 From: "Zhao, Gang" Date: Sun, 15 Jan 2023 16:51:30 +0800 Subject: [PATCH] util: Fix warning Fixed following warning: warning: use of deprecated associated function `futures_util::stream::FuturesOrdered::::push`: use `push_back` instead --> tower/src/util/call_all/ordered.rs:171:25 | 171 | FuturesOrdered::push(self, future) | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: `tower` (lib) generated 1 warning --- tower/src/util/call_all/ordered.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tower/src/util/call_all/ordered.rs b/tower/src/util/call_all/ordered.rs index cf55c2214..b89cef095 100644 --- a/tower/src/util/call_all/ordered.rs +++ b/tower/src/util/call_all/ordered.rs @@ -168,7 +168,7 @@ impl common::Drive for FuturesOrdered { } fn push(&mut self, future: F) { - FuturesOrdered::push(self, future) + FuturesOrdered::push_back(self, future) } fn poll(&mut self, cx: &mut Context<'_>) -> Poll> {