fixed hashmap formatting

This commit is contained in:
Mitch161 2020-07-18 15:04:45 +01:00
parent 79e6e425dc
commit 0677a95b61
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ impl<'server_lifetime> Server<'server_lifetime> {
client.handle_connection();
});
let params: HashMap<String, String> = [(String::from("name"), username.clone()), (String::from("host"), address.clone()), (String::from("uuid"), uuid.clone())];
let params: HashMap<String, String> = [(String::from("name"), username.clone()), (String::from("host"), address.clone()), (String::from("uuid"), uuid.clone())].iter().cloned().collect();
let new_client = Commands::Client(Some(params));
self.update_all_clients(new_client);