New rustfmt
This commit is contained in:
@@ -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")]
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -70,8 +70,7 @@ pub fn run_in_tmux() -> ! {
|
||||
"set",
|
||||
"remain-on-exit",
|
||||
"on",
|
||||
])
|
||||
.exec();
|
||||
]).exec();
|
||||
|
||||
panic!("{:?}", err);
|
||||
}
|
||||
|
||||
@@ -72,8 +72,7 @@ fn upgrade(
|
||||
"-e",
|
||||
"-s",
|
||||
"-V1",
|
||||
])
|
||||
.spawn()?
|
||||
]).spawn()?
|
||||
.wait()?
|
||||
.check()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user