From f7564f65846601f02ba1c9eaf1e53e2cbcec50dc Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Tue, 2 Jun 2020 00:06:33 +0200 Subject: [PATCH] refactor: remove unnecessary to_string conversion on addr --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1f7c6aa..d82fbc9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ fn main() { logger::init(&opts.log_level); - let addr = &format!("{}{}{}", opts.host.to_string(), ":", opts.port.to_string()); + let addr = &format!("{}{}{}", opts.host, ":", opts.port); let proto = if opts.tls { "HTTPS" } else { "HTTP" }; // Configure & launch the HTTP server -- libgit2 1.7.2