From 3dacc09173331917dc83c9c2f2fcc25636cf56d7 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sat, 11 Mar 2023 00:20:09 +0200 Subject: [PATCH] [Utils] Replace address and port as string string and additions to format! --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 0db5e31..e55b052 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -11,7 +11,7 @@ pub fn error_by_expected_size(expected: usize, size: usize) -> GDResult<()> { } pub fn address_and_port_as_string(address: &str, port: u16) -> String { - address.to_string() + ":" + &*port.to_string() + format!("{}:{}", address, port) } pub fn u8_lower_upper(n: u8) -> (u8, u8) {