diff --git a/crates/tor-circmgr/src/mgr.rs b/crates/tor-circmgr/src/mgr.rs index 68933a5fb..3d53372c0 100644 --- a/crates/tor-circmgr/src/mgr.rs +++ b/crates/tor-circmgr/src/mgr.rs @@ -37,7 +37,7 @@ use futures::stream::{FuturesUnordered, StreamExt}; use futures::task::SpawnExt; use std::collections::HashMap; use std::convert::TryInto; -use std::fmt::{self, Debug}; +use std::fmt::Debug; use std::hash::Hash; use std::panic::AssertUnwindSafe; use std::sync::{self, Arc, Weak}; @@ -383,6 +383,7 @@ impl PendingRequest { /// An entry for an under-construction in-progress circuit tracked by /// an `AbstractCircMgr`. +#[derive(Debug)] struct PendingEntry { /// Specification that this circuit will support, if every pending /// request that is waiting for it is attached to it. @@ -448,6 +449,7 @@ impl PendingEntry { /// Wrapper type to represent the state between planning to build a /// circuit and constructing it. +#[derive(Debug)] struct CircBuildPlan { /// The Plan object returned by [`AbstractCircBuilder::plan_circuit`]. plan: B::Plan, @@ -457,15 +459,6 @@ struct CircBuildPlan { pending: Arc>, } -impl Debug for CircBuildPlan { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("CircBuildPlan") - .field("plan", &self.plan) - .field("sender", &self.sender) - .finish_non_exhaustive() - } -} - /// The inner state of an [`AbstractCircMgr`]. struct CircList { /// A map from circuit ID to [`OpenEntry`] values for all managed