Skip to content

Commit 6e24492

Browse files
authored
Merge pull request #32 from mcmod-info-mirror/deepsource-transform-d392569f
style: format code with Rustfmt
2 parents 30a83de + d6e4fdf commit 6e24492

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/utils/app.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,20 @@ pub fn build_app_state(
6262
.unwrap_or_else(|_| "https://media.forgecdn.net".to_string()),
6363
curseforge_avatar_cdn_fallback_url: env::var("CURSEFORGE_AVATAR_CDN_FALLBACK_URL")
6464
.unwrap_or_else(|_| "https://media.forgecdn.net".to_string()),
65-
curseforge_avatar_cdn_primary_percentage: env::var("CURSEFORGE_AVATAR_CDN_PRIMARY_PERCENTAGE")
66-
.unwrap_or_else(|_| "100".to_string())
67-
.parse::<u8>()
68-
.unwrap_or(100),
65+
curseforge_avatar_cdn_primary_percentage: env::var(
66+
"CURSEFORGE_AVATAR_CDN_PRIMARY_PERCENTAGE",
67+
)
68+
.unwrap_or_else(|_| "100".to_string())
69+
.parse::<u8>()
70+
.unwrap_or(100),
6971
modrinth_avatar_cdn_url: env::var("MODRINTH_AVATAR_CDN_URL")
7072
.unwrap_or_else(|_| "https://cdn.modrinth.com".to_string()),
7173
modrinth_avatar_cdn_fallback_url: env::var("MODRINTH_AVATAR_CDN_FALLBACK_URL")
7274
.unwrap_or_else(|_| "https://cdn.modrinth.com".to_string()),
7375
modrinth_avatar_cdn_primary_percentage: env::var("MODRINTH_AVATAR_CDN_PRIMARY_PERCENTAGE")
74-
.unwrap_or_else(|_| "100".to_string())
75-
.parse::<u8>()
76-
.unwrap_or(100),
76+
.unwrap_or_else(|_| "100".to_string())
77+
.parse::<u8>()
78+
.unwrap_or(100),
7779
http_client: Client::new(), // 创建一个共享的 HTTP 客户端
7880
}
7981
}

0 commit comments

Comments
 (0)