mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-01 08:56:15 +01:00
Add #[track_caller] attribute to Router::into_[make_]service (#1407)
This commit is contained in:
parent
4c846488c2
commit
e3a17c1249
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue