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
parent 0ff0655c13
commit 9aa704556b

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>() {
path.as_str()
} else {
&request.uri().to_string()
request.uri().path()
};
tracing::info_span!("router:", %path)