Format cg_gcc with same formatting parameters

This commit is contained in:
Guillaume Gomez
2024-07-17 20:22:07 +02:00
parent 12bedc3e2b
commit 213782dd71
8 changed files with 18 additions and 54 deletions

View File

@@ -175,11 +175,7 @@ pub fn cargo_install(to_install: &str) -> Result<(), String> {
pub fn get_os_name() -> Result<String, String> {
let output = run_command(&[&"uname"], None)?;
let name = std::str::from_utf8(&output.stdout).unwrap_or("").trim().to_string();
if !name.is_empty() {
Ok(name)
} else {
Err("Failed to retrieve the OS name".to_string())
}
if !name.is_empty() { Ok(name) } else { Err("Failed to retrieve the OS name".to_string()) }
}
#[derive(Default, PartialEq)]