fixed hashmap formatting
This commit is contained in:
parent
79e6e425dc
commit
0677a95b61
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue