equal
deleted
inserted
replaced
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 |