diff --git a/axum-extra/src/routing/mod.rs b/axum-extra/src/routing/mod.rs index ad348292..d3a8e554 100644 --- a/axum-extra/src/routing/mod.rs +++ b/axum-extra/src/routing/mod.rs @@ -260,6 +260,7 @@ where self.route(P::PATH, axum::routing::trace(handler)) } + #[track_caller] fn route_with_tsr(mut self, path: &str, method_router: MethodRouter) -> Self where Self: Sized, @@ -278,6 +279,7 @@ where } } + #[track_caller] fn route_service_with_tsr(mut self, path: &str, service: T) -> Self where T: Service, Error = Infallible> + Clone + Send + 'static,