changed format string to use to string method

This commit is contained in:
Mitch161 2020-07-17 19:40:30 +01:00
parent 4031edbf9e
commit 7c1551341d
1 changed files with 1 additions and 3 deletions

View File

@ -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