resolve rust 1.75 error?
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
7f86a166ec
commit
c915f3dec5
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ fn tracing_span<T>(request: &http::Request<T>) -> tracing::Span {
|
|||
let path = if let Some(path) = request.extensions().get::<MatchedPath>() {
|
||||
path.as_str()
|
||||
} else {
|
||||
&request.uri().to_string()
|
||||
request.uri().path()
|
||||
};
|
||||
|
||||
tracing::info_span!("router:", %path)
|
||||
|
|
Loading…
Add table
Reference in a new issue