gameServer2/src/server/room.rs
changeset 13524 5359ff75da3a
parent 13523 8c5dd562c9f7
child 13525 d126d9a646ac
equal deleted inserted replaced
13523:8c5dd562c9f7 13524:5359ff75da3a
    51             drawn_map: None
    51             drawn_map: None
    52         }
    52         }
    53     }
    53     }
    54 }
    54 }
    55 
    55 
    56 fn client_teams_impl(teams: &Vec<(ClientId, TeamInfo)>, client_id: ClientId)
    56 fn client_teams_impl(teams: &[(ClientId, TeamInfo)], client_id: ClientId)
    57     -> impl Iterator<Item = &TeamInfo> + Clone
    57     -> impl Iterator<Item = &TeamInfo> + Clone
    58 {
    58 {
    59     teams.iter().filter(move |(id, _)| *id == client_id).map(|(_, t)| t)
    59     teams.iter().filter(move |(id, _)| *id == client_id).map(|(_, t)| t)
    60 }
    60 }
    61 
    61