Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 12, 2024
1 parent 464a301 commit 4d7b9f3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ fn http_request(request: HttpRequest) -> HttpResponse {

let total = top_ups.iter().map(|c| c.amount).sum();

build_json_response(&TopUps {
total,
top_ups: &top_ups,
})
build_json_response(&TopUps { total, top_ups })
}

match extract_route(&request.url) {
Expand Down

0 comments on commit 4d7b9f3

Please sign in to comment.