From: Ian Jackson Date: Fri, 23 Feb 2024 11:17:29 +0000 (+0000) Subject: Suppress a warning. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=db6b9965d9d3acb40b16fea463138bb0fb4c79cc;p=hippotat.git Suppress a warning. Signed-off-by: Ian Jackson --- 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 {