resolve rust 1.75 error?

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-24 01:23:59 -04:00 committed by June
parent 7f86a166ec
commit c915f3dec5

View file

@ -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)