mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
adding a mut
This commit is contained in:
parent
5c19ddb06c
commit
6bda6e2025
@ -299,7 +299,7 @@ fn handle_players(server: &mut Server, entity: EcsEntity, _args: String, _action
|
|||||||
if count > 0 {
|
if count > 0 {
|
||||||
let mut player_iter = players.join();
|
let mut player_iter = players.join();
|
||||||
let first = player_iter.next().unwrap().alias.to_owned();
|
let first = player_iter.next().unwrap().alias.to_owned();
|
||||||
let player_list = player_iter.fold(first, |s, p| {
|
let player_list = player_iter.fold(first, |mut s, p| {
|
||||||
s += ",\n";
|
s += ",\n";
|
||||||
s += &p.alias;
|
s += &p.alias;
|
||||||
s
|
s
|
||||||
|
Loading…
Reference in New Issue
Block a user