From 6e76435b80209bed1eefd38597b3ba25aef00fa7 Mon Sep 17 00:00:00 2001 From: Oliver Wangler Date: Wed, 27 Oct 2021 18:49:51 +0200 Subject: [PATCH] core/: Help the compiler disambiguate usize inference (#2310) Co-authored-by: Max Inden --- 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; } }