From abb533fd3b432f1793e35eb391ca2743a4ed606a Mon Sep 17 00:00:00 2001 From: KaranGauswami Date: Sun, 23 Jun 2024 16:35:18 +0530 Subject: [PATCH] accepted clippy suggestions --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 71a350f..f76d70e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ struct AuthParams { fn socket_addr(s: &str) -> Result { let mut address = s.to_socket_addrs()?; let address = address.next(); - Ok(address.ok_or_eyre(format!("no IP address found for the hostname"))?) + address.ok_or_eyre("no IP address found for the hostname".to_string()) } #[derive(Parser, Debug)]