Skip to content

Commit d2c4ba5

Browse files
committed
cargo fmt
1 parent 530aba8 commit d2c4ba5

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

audio/src/fetch/receive.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ async fn receive_data(
9999
}
100100

101101
let body = response.into_body();
102-
let data = match body.collect().await.map(http_body_util::Collected::to_bytes) {
102+
let data = match body
103+
.collect()
104+
.await
105+
.map(http_body_util::Collected::to_bytes)
106+
{
103107
Ok(bytes) => bytes,
104108
Err(e) => break Err(e.into()),
105109
};

core/src/http_client.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,7 @@ impl HttpClient {
240240
let domain = match req.uri().host() {
241241
Some(host) => {
242242
// strip the prefix from *.domain.tld (assume rate limit is per domain, not subdomain)
243-
let mut parts = host
244-
.split('.')
245-
.map(Into::into)
246-
.collect::<Vec<String>>();
243+
let mut parts = host.split('.').map(Into::into).collect::<Vec<String>>();
247244
let n = parts.len().saturating_sub(2);
248245
parts.drain(n..).collect()
249246
}

metadata/src/restriction.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ impl_deref_wrapped!(RestrictionCatalogues, Vec<RestrictionCatalogue>);
3333

3434
impl Restriction {
3535
fn parse_country_codes(country_codes: &str) -> Vec<String> {
36-
country_codes
37-
.chunks(2)
38-
.map(Into::into)
39-
.collect()
36+
country_codes.chunks(2).map(Into::into).collect()
4037
}
4138
}
4239

0 commit comments

Comments
 (0)