resolve rust 1.75 error?
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -459,7 +459,7 @@ fn tracing_span<T>(request: &http::Request<T>) -> tracing::Span {
|
|||||||
let path = if let Some(path) = request.extensions().get::<MatchedPath>() {
|
let path = if let Some(path) = request.extensions().get::<MatchedPath>() {
|
||||||
path.as_str()
|
path.as_str()
|
||||||
} else {
|
} else {
|
||||||
&request.uri().to_string()
|
request.uri().path()
|
||||||
};
|
};
|
||||||
|
|
||||||
tracing::info_span!("router:", %path)
|
tracing::info_span!("router:", %path)
|
||||||
|
|||||||
Reference in New Issue
Block a user