Skip to content

Commit 42c46d6

Browse files
committed
fix: 修复代码格式
1 parent e0379a6 commit 42c46d6

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src-tauri/src/env_providers/clojure.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ impl ClojureEnvironmentProvider {
131131

132132
for release in metadata.releases {
133133
// 检查是否支持当前平台(支持 macos-aarch64、macos-x86_64 等格式)
134-
let is_supported = release.supported_platforms.iter().any(|p| {
135-
p == current_platform || p.starts_with(&format!("{}-", current_platform))
136-
});
134+
let is_supported = release
135+
.supported_platforms
136+
.iter()
137+
.any(|p| p == current_platform || p.starts_with(&format!("{}-", current_platform)));
137138

138139
if !is_supported {
139140
continue;

src-tauri/src/env_providers/scala.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ impl ScalaEnvironmentProvider {
283283

284284
for release in metadata.releases {
285285
// 检查是否支持当前平台
286-
let is_supported = release.supported_platforms.iter().any(|p| {
287-
p == current_platform || p.starts_with(&format!("{}-", current_platform))
288-
});
286+
let is_supported = release
287+
.supported_platforms
288+
.iter()
289+
.any(|p| p == current_platform || p.starts_with(&format!("{}-", current_platform)));
289290

290291
if !is_supported {
291292
continue;

0 commit comments

Comments
 (0)