diff --git a/axum/src/routing/mod.rs b/axum/src/routing/mod.rs index 12cc507b..687c51c6 100644 --- a/axum/src/routing/mod.rs +++ b/axum/src/routing/mod.rs @@ -439,6 +439,7 @@ where } /// Convert this router into a [`RouterService`]. + #[track_caller] pub fn into_service(self) -> RouterService { RouterService::new(self) } @@ -466,6 +467,7 @@ where /// ``` /// /// [`MakeService`]: tower::make::MakeService + #[track_caller] pub fn into_make_service(self) -> IntoMakeService> { IntoMakeService::new(self.into_service()) }