diff --git a/src/config.rs b/src/config.rs index 8fa7bd0a..33531b1f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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")] diff --git a/src/linux.rs b/src/linux.rs index be3aac64..b9c780a1 100644 --- a/src/linux.rs +++ b/src/linux.rs @@ -152,7 +152,11 @@ pub fn run_needrestart(sudo: &Option, 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(); diff --git a/src/tmux.rs b/src/tmux.rs index 309f1fae..e1286cf1 100644 --- a/src/tmux.rs +++ b/src/tmux.rs @@ -70,8 +70,7 @@ pub fn run_in_tmux() -> ! { "set", "remain-on-exit", "on", - ]) - .exec(); + ]).exec(); panic!("{:?}", err); } diff --git a/src/vim.rs b/src/vim.rs index 98d7e818..500f9f86 100644 --- a/src/vim.rs +++ b/src/vim.rs @@ -72,8 +72,7 @@ fn upgrade( "-e", "-s", "-V1", - ]) - .spawn()? + ]).spawn()? .wait()? .check()?;