mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-20 00:00:11 +02:00
Add #[track_caller] attribute to Router::into_[make_]service (#1407)
This commit is contained in:
@@ -439,6 +439,7 @@ where
|
||||
}
|
||||
|
||||
/// Convert this router into a [`RouterService`].
|
||||
#[track_caller]
|
||||
pub fn into_service(self) -> RouterService<B> {
|
||||
RouterService::new(self)
|
||||
}
|
||||
@@ -466,6 +467,7 @@ where
|
||||
/// ```
|
||||
///
|
||||
/// [`MakeService`]: tower::make::MakeService
|
||||
#[track_caller]
|
||||
pub fn into_make_service(self) -> IntoMakeService<RouterService<B>> {
|
||||
IntoMakeService::new(self.into_service())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user