on master help sign in
Linting
commit44bdae0212b262ec3dc62466aff6871c362af37f authorNisheet Sinvhal <nisheet1.sinvhal@gmail.com> dateFri 2 Nov 2018, 16:36 (8 years ago) parent1ece38a
3 files changed+4−4
src/app.rs+2−2 src/clap_app.rs+1−1 src/printer.rs+1−1
src/app.rs+2−2
@@ -77,7 +77,7 @@ pub struct Config<'a> {
7777 /// Command to start the pager
7878 pub pager: Option<&'a str>,
7979
80− pub italics: bool
80+ pub italics: bool,
8181}
8282
8383fn is_truecolor_terminal() -> bool {
@@ -262,7 +262,7 @@ impl App {
262262 pager: self.matches.value_of("pager"),
263263 italics: match self.matches.value_of("italic-text") {
264264 Some("always") => true,
265− _ => false
265+ _ => false,
266266 },
267267 })
268268 }
src/clap_app.rs+1−1
@@ -329,7 +329,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
329329 .possible_values(&["always", "never"])
330330 .default_value("never")
331331 .hide_default_value(true)
332− .help("Use italics in output (always, *never*)")
332+ .help("Use italics in output (always, *never*)"),
333333 )
334334 .subcommand(
335335 SubCommand::with_name("cache")
src/printer.rs+1−1
@@ -306,7 +306,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
306306 let true_color = self.config.true_color;
307307 let colored_output = self.config.colored_output;
308308 let italics = self.config.italics;
309−
309+
310310 for &(style, region) in regions.iter() {
311311 let text = &*self.preprocess(region, &mut cursor_total);
312312 write!(