ChatGPT Codex 5.5 xhigh refactored even more
This commit is contained in:
@@ -409,8 +409,8 @@ impl PeerGameDB {
|
||||
#[must_use]
|
||||
pub fn game_files_for(&self, game_id: &str) -> Vec<(SocketAddr, Vec<GameFileDescription>)> {
|
||||
self.peers
|
||||
.iter()
|
||||
.filter_map(|(_, peer)| {
|
||||
.values()
|
||||
.filter_map(|peer| {
|
||||
peer.files
|
||||
.get(game_id)
|
||||
.cloned()
|
||||
|
||||
Reference in New Issue
Block a user