New rustfmt

This commit is contained in:
Roey Darwish Dror
2018-09-14 13:47:32 +03:00
parent 588f76828f
commit 669497ef5e
4 changed files with 15 additions and 7 deletions

View File

@@ -152,7 +152,11 @@ pub fn run_needrestart(sudo: &Option<PathBuf>, terminal: &mut Terminal, dry_run:
terminal.print_separator("Check for needed restarts");
let success = || -> Result<(), failure::Error> {
Executor::new(&sudo, dry_run).arg(needrestart).spawn()?.wait()?.check()?;
Executor::new(&sudo, dry_run)
.arg(needrestart)
.spawn()?
.wait()?
.check()?;
Ok(())
}().is_ok();