Skip to content

Commit c411a2b

Browse files
committed
fmt: cargo fmt
1 parent 5ab5939 commit c411a2b

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

atcoder-problems-backend/atcoder-client/src/util.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ use anyhow::{anyhow, Result};
33
use serde::de::DeserializeOwned;
44

55
pub(crate) async fn get_html(url: &str) -> Result<(String, reqwest::StatusCode)> {
6-
let response = reqwest::Client::builder().gzip(true).build()?
6+
let response = reqwest::Client::builder()
7+
.gzip(true)
8+
.build()?
79
.get(url)
810
.header("accept", "text/html")
911
.send()
@@ -21,7 +23,9 @@ pub(crate) async fn get_html(url: &str) -> Result<(String, reqwest::StatusCode)>
2123
}
2224

2325
pub(crate) async fn get_json<T: DeserializeOwned>(url: &str) -> Result<T> {
24-
reqwest::Client::builder().gzip(true).build()?
26+
reqwest::Client::builder()
27+
.gzip(true)
28+
.build()?
2529
.get(url)
2630
.header("accept", "application/json")
2731
.send()

atcoder-problems-backend/src/server/ranking/ac_count.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ impl<A: Sync + Send + Clone + 'static> UserRankSelector<A> for AcRanking {
5252
.map_err(error::ErrorInternalServerError)?;
5353
Ok(Some(UserRankResponse { count, rank }))
5454
}
55-
}
55+
}

atcoder-problems-backend/src/server/ranking/rated_point_sum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::{
2-
RankingRequest, RankingRequestFormat, RankingSelector, UserRankRequest,
3-
UserRankResponse, UserRankSelector, UserSum
2+
RankingRequest, RankingRequestFormat, RankingSelector, UserRankRequest, UserRankResponse,
3+
UserRankSelector, UserSum,
44
};
55
use crate::server::AppData;
66

0 commit comments

Comments
 (0)