gameServer2/src/server/room.rs
changeset 13529 5359ff75da3a
parent 13528 8c5dd562c9f7
child 13530 d126d9a646ac
--- a/gameServer2/src/server/room.rs	Tue Jul 17 00:27:24 2018 +0300
+++ b/gameServer2/src/server/room.rs	Tue Jul 17 16:03:34 2018 +0300
@@ -53,7 +53,7 @@
     }
 }
 
-fn client_teams_impl(teams: &Vec<(ClientId, TeamInfo)>, client_id: ClientId)
+fn client_teams_impl(teams: &[(ClientId, TeamInfo)], client_id: ClientId)
     -> impl Iterator<Item = &TeamInfo> + Clone
 {
     teams.iter().filter(move |(id, _)| *id == client_id).map(|(_, t)| t)