From 44bdae0212b262ec3dc62466aff6871c362af37f Mon Sep 17 00:00:00 2001 From: Nisheet Sinvhal Date: Fri, 2 Nov 2018 16:36:49 +0530 Subject: [PATCH] Linting --- src/app.rs | 4 ++-- src/clap_app.rs | 2 +- src/printer.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index 94dbfe2c..6883b455 100644 --- a/src/app.rs +++ b/src/app.rs @@ -77,7 +77,7 @@ pub struct Config<'a> { /// Command to start the pager pub pager: Option<&'a str>, - pub italics: bool + pub italics: bool, } fn is_truecolor_terminal() -> bool { @@ -262,7 +262,7 @@ impl App { pager: self.matches.value_of("pager"), italics: match self.matches.value_of("italic-text") { Some("always") => true, - _ => false + _ => false, }, }) } diff --git a/src/clap_app.rs b/src/clap_app.rs index c3c8d97b..8ed8ef82 100644 --- a/src/clap_app.rs +++ b/src/clap_app.rs @@ -329,7 +329,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .possible_values(&["always", "never"]) .default_value("never") .hide_default_value(true) - .help("Use italics in output (always, *never*)") + .help("Use italics in output (always, *never*)"), ) .subcommand( SubCommand::with_name("cache") diff --git a/src/printer.rs b/src/printer.rs index ac3d404e..452acf50 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -306,7 +306,7 @@ impl<'a> Printer for InteractivePrinter<'a> { let true_color = self.config.true_color; let colored_output = self.config.colored_output; let italics = self.config.italics; - + for &(style, region) in regions.iter() { let text = &*self.preprocess(region, &mut cursor_total); write!(