diff --git a/axum/src/routing/mod.rs b/axum/src/routing/mod.rs index 86ebff78..538b2939 100644 --- a/axum/src/routing/mod.rs +++ b/axum/src/routing/mod.rs @@ -62,6 +62,7 @@ impl RouteId { } /// The router type for composing handlers and services. +#[derive(Debug)] pub struct Router { routes: HashMap>, node: Node, @@ -87,16 +88,6 @@ where } } -impl fmt::Debug for Router { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Router") - .field("routes", &self.routes) - .field("node", &self.node) - .field("fallback", &self.fallback) - .finish() - } -} - pub(crate) const NEST_TAIL_PARAM: &str = "axum_nest"; const NEST_TAIL_PARAM_CAPTURE: &str = "/*axum_nest";