mirror of
https://github.com/tokio-rs/axum.git
synced 2025-02-16 18:31:51 +01:00
Add track_caller to route_with_tsr (#1390)
… and route_service_with_tsr.
This commit is contained in:
parent
c93d7c324e
commit
4ade706ab0
1 changed files with 2 additions and 0 deletions
|
@ -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<S, B>) -> Self
|
||||
where
|
||||
Self: Sized,
|
||||
|
@ -278,6 +279,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn route_service_with_tsr<T>(mut self, path: &str, service: T) -> Self
|
||||
where
|
||||
T: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
|
||||
|
|
Loading…
Add table
Reference in a new issue