From 7c1551341d28c5641baf439d48a690d4fabe0ea8 Mon Sep 17 00:00:00 2001 From: Mitch161 Date: Fri, 17 Jul 2020 19:40:30 +0100 Subject: [PATCH] changed format string to use to string method --- src/server/client/client_profile.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/client/client_profile.rs b/src/server/client/client_profile.rs index 99a18dc..20e5ff2 100644 --- a/src/server/client/client_profile.rs +++ b/src/server/client/client_profile.rs @@ -87,9 +87,7 @@ impl<'a> Client<'a> { }, Commands::ClientRemove(Some(params)) => {}, Commands::Client(Some(params)) => { - let message:String = format!("!client: name:{name} host:{host} uuid:{uuid}", name=params.get("name").unwrap(), host=params.get("host").unwrap(), uuid=params.get("uuid").unwrap()); - self.transmit_data(message.as_str()); - + self.transmit_data(a.to_string().as_str()); todo!() /* * a success message needs to be read and confirmed