diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-08-23 20:00:21 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-08-23 20:00:21 +0200 |
commit | aa066ef5bb9ed043feafd0e87e219cb34cce35c5 (patch) | |
tree | 9773cfd035a712e951ad9490e95c05f723aa22b1 /planetwars-server/src/routes | |
parent | fa4c684475a365055c2aacdf712c7903c9a5f2f2 (diff) | |
download | planetwars.dev-aa066ef5bb9ed043feafd0e87e219cb34cce35c5.tar.xz planetwars.dev-aa066ef5bb9ed043feafd0e87e219cb34cce35c5.zip |
create maps table
Diffstat (limited to 'planetwars-server/src/routes')
-rw-r--r-- | planetwars-server/src/routes/matches.rs | 7 |
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, |