tor-circmgr: Turn a type annotation comment into code

The type annotation may not be necessary for inference, but as a
comment it risks becoming false.  So it should be uncommented, or
deleted.

Error types round here are not entirely trivial so uncomment it.
This commit is contained in:
Ian Jackson 2022-01-24 18:17:55 +00:00
parent 4413645c1b
commit eaa449d373
1 changed files with 1 additions and 2 deletions

View File

@ -741,8 +741,7 @@ impl<B: AbstractCircBuilder + 'static, R: Runtime> AbstractCircMgr<B, R> {
let timeout_at = self.runtime.now() + wait_for_circ;
let max_tries = circuit_timing.request_max_retries;
let mut retry_err =
RetryError /* ::<Box<Error>> */::in_attempt_to("find or build a circuit");
let mut retry_err = RetryError::<Box<Error>>::in_attempt_to("find or build a circuit");
for n in 1..(max_tries + 1) {
// How much time is remaining?