From db6b9965d9d3acb40b16fea463138bb0fb4c79cc Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 23 Feb 2024 11:17:29 +0000 Subject: [PATCH] Suppress a warning. Signed-off-by: Ian Jackson --- client/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/client.rs b/client/client.rs index 7511c87..bebb83d 100644 --- a/client/client.rs +++ b/client/client.rs @@ -291,7 +291,9 @@ async fn run_client( (got, goti, _) = async { future::select_all(&mut reqs).await }, if ! reqs.is_empty() => { - reqs.swap_remove(goti); + // This future was Ready and has returned the value, + // which is in `got`. We don't want the completed future. + let _: Pin>> = reqs.swap_remove(goti); if let Some(got) = got { -- 2.30.2