From cf24986edb0647fe3539f71aedc24b3dd3b9503f Mon Sep 17 00:00:00 2001 From: ms2300 Date: Mon, 10 Sep 2018 00:07:46 -0600 Subject: [PATCH] Run formatting for bat_style changes --- src/app.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app.rs b/src/app.rs index 83ffc4f2..8264914a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -12,7 +12,7 @@ use console::Term; #[cfg(windows)] use ansi_term; -use assets::{BAT_THEME_DEFAULT, BAT_STYLE_DEFAULT}; +use assets::{BAT_STYLE_DEFAULT, BAT_THEME_DEFAULT}; use errors::*; use line_range::LineRange; use style::{OutputComponent, OutputComponents, OutputWrap}; @@ -441,12 +441,13 @@ impl App { } else { let style = env::var("BAT_STYLE").unwrap_or(String::from(BAT_STYLE_DEFAULT)); match OutputComponent::from_str(&style) { - Ok(s) => [s].iter() - .map(|style| style.components(self.interactive_output)) - .fold(HashSet::new(), |mut acc, components| { - acc.extend(components.iter().cloned()); - acc - }), + Ok(s) => [s] + .iter() + .map(|style| style.components(self.interactive_output)) + .fold(HashSet::new(), |mut acc, components| { + acc.extend(components.iter().cloned()); + acc + }), Err(_) => HashSet::new(), } },