Cargo fmt

This commit is contained in:
Roey Darwish Dror
2018-10-29 14:32:33 +02:00
parent c0942e12a3
commit d081991edc
2 changed files with 12 additions and 20 deletions

View File

@@ -74,16 +74,12 @@ pub fn run_emacs(base_dirs: &BaseDirs, terminal: &mut Terminal, dry_run: bool) -
} }
#[must_use] #[must_use]
#[cfg( #[cfg(not(any(
not( target_os = "freebsd",
any( target_os = "openbsd",
target_os = "freebsd", target_os = "netbsd",
target_os = "openbsd", target_os = "dragonfly"
target_os = "netbsd", )))]
target_os = "dragonfly"
)
)
)]
pub fn run_apm(terminal: &mut Terminal, dry_run: bool) -> Option<(&'static str, bool)> { pub fn run_apm(terminal: &mut Terminal, dry_run: bool) -> Option<(&'static str, bool)> {
if let Some(apm) = utils::which("apm") { if let Some(apm) = utils::which("apm") {
terminal.print_separator("Atom Package Manager"); terminal.print_separator("Atom Package Manager");

View File

@@ -288,16 +288,12 @@ fn run() -> Result<(), Error> {
&mut execution_context, &mut execution_context,
)?); )?);
#[cfg( #[cfg(not(any(
not( target_os = "freebsd",
any( target_os = "openbsd",
target_os = "freebsd", target_os = "netbsd",
target_os = "openbsd", target_os = "dragonfly"
target_os = "netbsd", )))]
target_os = "dragonfly"
)
)
)]
report.push_result(execute( report.push_result(execute(
|terminal| generic::run_apm(terminal, opt.dry_run), |terminal| generic::run_apm(terminal, opt.dry_run),
&mut execution_context, &mut execution_context,