From 4ced3a81d186b063f795230186394d11d3930148 Mon Sep 17 00:00:00 2001 From: Sam Andreae Date: Mon, 3 Jun 2024 14:08:17 +0100 Subject: [PATCH] Clippy --- aquadoggo/src/network/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aquadoggo/src/network/utils.rs b/aquadoggo/src/network/utils.rs index a1f34804b..005149e81 100644 --- a/aquadoggo/src/network/utils.rs +++ b/aquadoggo/src/network/utils.rs @@ -29,7 +29,7 @@ pub fn to_multiaddress(address: &String) -> Result { let socket_address = address .to_socket_addrs()? .next() - .expect(&format!("Could not resolve socket address for: {address}")); + .unwrap_or_else(|| panic!("Could not resolve socket address for: {}", address)); let mut multiaddr = match socket_address.ip() { IpAddr::V4(ip) => Multiaddr::from(Protocol::Ip4(ip)),