From 4d384dc199f521d98cf858ff81c693cf888b572c Mon Sep 17 00:00:00 2001 From: bitful-pannul Date: Wed, 17 Jan 2024 14:01:40 -0300 Subject: [PATCH] http: remove unnecessary to_string --- src/http/server.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http/server.rs b/src/http/server.rs index 6176ed42..33389d03 100644 --- a/src/http/server.rs +++ b/src/http/server.rs @@ -484,8 +484,7 @@ async fn http_handler( method: method.to_string(), url: format!( "http://{}{}", - host.unwrap_or(Authority::from_static("localhost")) - .to_string(), + host.unwrap_or(Authority::from_static("localhost")), original_path ), headers: serialized_headers,