Skip to content

Commit

Permalink
core/: Help the compiler disambiguate usize inference (#2310)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Inden <mail@max-inden.de>
  • Loading branch information
wngr and mxinden committed Oct 27, 2021
1 parent 185b763 commit 6e76435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/connection/pool/concurrent_dial.rs
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6e76435

Please sign in to comment.