mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-08 01:48:20 -10:00
style(release): rustfmt install.rs
e5283cb022 landed an unformatted condition in InstallMethod detection, so
cargo fmt --check (Lint) failed on main and on every PR merged with it
(seen on #7111). Pure rustfmt output; no behavior change.
Verified: rustfmt --edition 2024 on the file yields this exact content; the
CI Lint log reported this as the only fmt diff.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d65165c6b7
commit
3c5c6054df
1 file changed
+5
-6
@@ -135,12 +135,11 @@ impl InstallMethod {
|
||||
|
||||
let has = |name: &str| components.iter().any(|c| c == name);
|
||||
|
||||
if components
|
||||
.windows(3)
|
||||
.any(|parts| parts[0].ends_with(".app") && parts[1] == "contents" && parts[2] == "macos")
|
||||
|| components
|
||||
.windows(2)
|
||||
.any(|pair| pair[0] == "gpui" && pair[1] == "engine")
|
||||
if components.windows(3).any(|parts| {
|
||||
parts[0].ends_with(".app") && parts[1] == "contents" && parts[2] == "macos"
|
||||
}) || components
|
||||
.windows(2)
|
||||
.any(|pair| pair[0] == "gpui" && pair[1] == "engine")
|
||||
{
|
||||
return Self::DesktopApp;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user