Rustfmt (fixes #16)
This commit is contained in:
@@ -100,6 +100,11 @@ fn main() -> Result<(), Error> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Ok(rustup) = which("rustup") {
|
||||||
|
terminal.print_separator("rustup");
|
||||||
|
run_rustup(&rustup).report("rustup", &mut reports);
|
||||||
|
}
|
||||||
|
|
||||||
let cargo_upgrade = home_path(".cargo/bin/cargo-install-update");
|
let cargo_upgrade = home_path(".cargo/bin/cargo-install-update");
|
||||||
if cargo_upgrade.exists() {
|
if cargo_upgrade.exists() {
|
||||||
terminal.print_separator("Cargo");
|
terminal.print_separator("Cargo");
|
||||||
|
|||||||
@@ -119,6 +119,12 @@ pub fn run_fwupdmgr(fwupdmgr: &PathBuf) -> Result<(), failure::Error> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_rustup(rustup: &PathBuf) -> Result<(), failure::Error> {
|
||||||
|
Command::new(rustup).arg("update").spawn()?.wait()?.check()?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
pub fn upgrade_macos() -> Result<(), failure::Error> {
|
pub fn upgrade_macos() -> Result<(), failure::Error> {
|
||||||
Command::new("softwareupdate")
|
Command::new("softwareupdate")
|
||||||
.args(&["--install", "--all"])
|
.args(&["--install", "--all"])
|
||||||
|
|||||||
Reference in New Issue
Block a user