Skip to content

Commit 9bc4aea

Browse files
committed
fix format
1 parent fb62bb6 commit 9bc4aea

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

environment/src/lib.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,18 @@ pub fn install_env(env: &str) {
6767
.arg("brew install python")
6868
.status()
6969
} else {
70-
println!("No supported package manager found (apt-get, dnf, yum, pacman). Please install Python manually.");
70+
println!(
71+
"No supported package manager found (apt-get, dnf, yum, pacman). Please install Python manually."
72+
);
7173
return;
7274
}
7375
};
7476

7577
match output {
7678
Ok(status) if status.success() => println!("Python installation completed!"),
77-
Ok(status) => println!("Python installation failed, exit code: {:?}", status.code()),
79+
Ok(status) => {
80+
println!("Python installation failed, exit code: {:?}", status.code())
81+
}
7882
Err(e) => println!("Error occurred while running install command: {e}"),
7983
}
8084
}
@@ -96,7 +100,10 @@ pub fn install_env(env: &str) {
96100

97101
#[cfg(target_os = "windows")]
98102
let output = std::process::Command::new("powershell")
99-
.args(["-Command", "winget install -e --id Xmake-io.Xmake --source winget"])
103+
.args([
104+
"-Command",
105+
"winget install -e --id Xmake-io.Xmake --source winget",
106+
])
100107
.status();
101108

102109
#[cfg(not(target_os = "windows"))]
@@ -113,4 +120,4 @@ pub fn install_env(env: &str) {
113120
}
114121
_ => println!("Automatic installation for this environment is not supported: {env}"),
115122
}
116-
}
123+
}

0 commit comments

Comments
 (0)