From d081991edcdd854dee5bf83a1a27aedd1e704817 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 29 Oct 2018 14:32:33 +0200 Subject: [PATCH] Cargo fmt --- src/generic.rs | 16 ++++++---------- src/main.rs | 16 ++++++---------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/src/generic.rs b/src/generic.rs index 262dd87c..bf8ca54b 100644 --- a/src/generic.rs +++ b/src/generic.rs @@ -74,16 +74,12 @@ pub fn run_emacs(base_dirs: &BaseDirs, terminal: &mut Terminal, dry_run: bool) - } #[must_use] -#[cfg( - not( - any( - target_os = "freebsd", - target_os = "openbsd", - target_os = "netbsd", - target_os = "dragonfly" - ) - ) -)] +#[cfg(not(any( + target_os = "freebsd", + target_os = "openbsd", + target_os = "netbsd", + target_os = "dragonfly" +)))] pub fn run_apm(terminal: &mut Terminal, dry_run: bool) -> Option<(&'static str, bool)> { if let Some(apm) = utils::which("apm") { terminal.print_separator("Atom Package Manager"); diff --git a/src/main.rs b/src/main.rs index c09841de..a079b72d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -288,16 +288,12 @@ fn run() -> Result<(), Error> { &mut execution_context, )?); - #[cfg( - not( - any( - target_os = "freebsd", - target_os = "openbsd", - target_os = "netbsd", - target_os = "dragonfly" - ) - ) - )] + #[cfg(not(any( + target_os = "freebsd", + target_os = "openbsd", + target_os = "netbsd", + target_os = "dragonfly" + )))] report.push_result(execute( |terminal| generic::run_apm(terminal, opt.dry_run), &mut execution_context,