From c915f3dec538ff8e12277007fb1145347311a39a Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 24 Apr 2024 01:23:59 -0400 Subject: [PATCH] resolve rust 1.75 error? Signed-off-by: strawberry --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9222e17a..490c5ca4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -459,7 +459,7 @@ fn tracing_span(request: &http::Request) -> tracing::Span { let path = if let Some(path) = request.extensions().get::() { path.as_str() } else { - &request.uri().to_string() + request.uri().path() }; tracing::info_span!("router:", %path)