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

@@ -54,10 +54,16 @@ pub struct Opt {
#[structopt(long = "no-system", help = "Don't perform system upgrade")]
pub no_system: bool,
#[structopt(long = "no-git-repos", help = "Don't perform updates on configured git repos")]
#[structopt(
long = "no-git-repos",
help = "Don't perform updates on configured git repos"
)]
pub no_git_repos: bool,
#[structopt(long = "no-emacs", help = "Don't upgrade Emacs packages or configuration files")]
#[structopt(
long = "no-emacs",
help = "Don't upgrade Emacs packages or configuration files"
)]
pub no_emacs: bool,
#[structopt(short = "n", long = "dry-run", help = "Print what would be done")]

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();

View File

@@ -70,8 +70,7 @@ pub fn run_in_tmux() -> ! {
"set",
"remain-on-exit",
"on",
])
.exec();
]).exec();
panic!("{:?}", err);
}

View File

@@ -72,8 +72,7 @@ fn upgrade(
"-e",
"-s",
"-V1",
])
.spawn()?
]).spawn()?
.wait()?
.check()?;