on master help sign in
Fix formatting
2a78515sharkdp
src/app.rs+4−1
@@ -185,7 +185,10 @@ impl App {
185 .or_else(|| env::var("BAT_THEME").ok())
185 .or_else(|| env::var("BAT_THEME").ok())
186 .unwrap_or(String::from(BAT_THEME_DEFAULT)),
186 .unwrap_or(String::from(BAT_THEME_DEFAULT)),
187 line_range: transpose(self.matches.value_of("line-range").map(LineRange::from))?,
187 line_range: transpose(self.matches.value_of("line-range").map(LineRange::from))?,
188+ highlight_line: self
189+ .matches
188− highlight_line: self.matches.value_of("highlight-line").and_then(|w| w.parse().ok()),
190+ .value_of("highlight-line")
191+ .and_then(|w| w.parse().ok()),
189 output_components,
192 output_components,
190 })
193 })
191 }
194 }
src/printer.rs+2−2
@@ -309,8 +309,8 @@ impl<'a> Printer for InteractivePrinter<'a> {
309 } else {
309 } else {
310 None
310 None
311 }
311 }
312− }
312+ }
313− _ => None
313+ _ => None,
314 };
314 };
315
315
316 // Line contents.
316 // Line contents.