From 1d6fed8c2bf187df75b46aa57a178d4acb4e00a9 Mon Sep 17 00:00:00 2001 From: wngr Date: Mon, 25 Oct 2021 18:57:58 +0200 Subject: [PATCH] core: help the compiler disambiguate --- core/src/connection/pool/concurrent_dial.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/connection/pool/concurrent_dial.rs b/core/src/connection/pool/concurrent_dial.rs index a7434a23fe9..4e960e09188 100644 --- a/core/src/connection/pool/concurrent_dial.rs +++ b/core/src/connection/pool/concurrent_dial.rs @@ -81,7 +81,7 @@ where let dials = FuturesUnordered::new(); while let Some(dial) = pending_dials.next() { dials.push(dial); - if dials.len() == concurrency_factor.get().into() { + if dials.len() == concurrency_factor.get() as usize { break; } }