New rustfmt
This commit is contained in:
@@ -54,10 +54,16 @@ pub struct Opt {
|
|||||||
#[structopt(long = "no-system", help = "Don't perform system upgrade")]
|
#[structopt(long = "no-system", help = "Don't perform system upgrade")]
|
||||||
pub no_system: bool,
|
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,
|
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,
|
pub no_emacs: bool,
|
||||||
|
|
||||||
#[structopt(short = "n", long = "dry-run", help = "Print what would be done")]
|
#[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");
|
terminal.print_separator("Check for needed restarts");
|
||||||
|
|
||||||
let success = || -> Result<(), failure::Error> {
|
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(())
|
Ok(())
|
||||||
}().is_ok();
|
}().is_ok();
|
||||||
|
|||||||
@@ -70,8 +70,7 @@ pub fn run_in_tmux() -> ! {
|
|||||||
"set",
|
"set",
|
||||||
"remain-on-exit",
|
"remain-on-exit",
|
||||||
"on",
|
"on",
|
||||||
])
|
]).exec();
|
||||||
.exec();
|
|
||||||
|
|
||||||
panic!("{:?}", err);
|
panic!("{:?}", err);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,8 +72,7 @@ fn upgrade(
|
|||||||
"-e",
|
"-e",
|
||||||
"-s",
|
"-s",
|
||||||
"-V1",
|
"-V1",
|
||||||
])
|
]).spawn()?
|
||||||
.spawn()?
|
|
||||||
.wait()?
|
.wait()?
|
||||||
.check()?;
|
.check()?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user