core/: Help the compiler disambiguate usize inference (#2310)

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Oliver Wangler 2021-10-27 18:49:51 +02:00 committed by GitHub
parent 185b763803
commit 6e76435b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}