workaround for "error[E0283]: type annotations needed" (tor-circmgr 0.28)

  1. copy tor-circmgr 0.28 to somewhere, then apply this patch ( tor-circmgr: Explicit type annotation (!2886) · Merge requests · The Tor Project / Core / Arti · GitLab ):
--- a/tor-circmgr-0.28.0/src/timeouts/pareto.rs
+++ b/tor-circmgr-0.28.0/src/timeouts/pareto.rs
@@ -630,7 +630,7 @@
     }
 
     fn learning_timeouts(&self) -> bool {
-        self.p.use_estimates && self.history.n_times() < self.p.min_observations.into()
+        self.p.use_estimates && self.history.n_times() < usize::from(self.p.min_observations)
     }
 
     fn build_state(&mut self) -> Option<ParetoTimeoutState> {
  1. add a [patch]section in `Cargo.toml
[patch.crates-io]
tor-circmgr = { path = "../path/to/tor-circmgr" }
1 Like