aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/matches.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/src/routes/matches.rs')
-rw-r--r--planetwars-server/src/routes/matches.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs
index 44bdaf1..71c4409 100644
--- a/planetwars-server/src/routes/matches.rs
+++ b/planetwars-server/src/routes/matches.rs
@@ -79,11 +79,8 @@ pub async fn list_recent_matches(
matches.truncate(requested_count);
}
- let api_matches = matches
- .into_iter()
- .map(match_data_to_api)
- .collect();
-
+ let api_matches = matches.into_iter().map(match_data_to_api).collect();
+
Ok(Json(ListMatchesResponse {
matches: api_matches,
has_next,