Fix formatting

This commit is contained in:
sharkdp 2018-10-10 20:45:10 +02:00
parent 1a6709c2cb
commit 2a7851530d
2 changed files with 6 additions and 3 deletions

View File

@ -185,7 +185,10 @@ impl App {
.or_else(|| env::var("BAT_THEME").ok()) .or_else(|| env::var("BAT_THEME").ok())
.unwrap_or(String::from(BAT_THEME_DEFAULT)), .unwrap_or(String::from(BAT_THEME_DEFAULT)),
line_range: transpose(self.matches.value_of("line-range").map(LineRange::from))?, line_range: transpose(self.matches.value_of("line-range").map(LineRange::from))?,
highlight_line: self.matches.value_of("highlight-line").and_then(|w| w.parse().ok()), highlight_line: self
.matches
.value_of("highlight-line")
.and_then(|w| w.parse().ok()),
output_components, output_components,
}) })
} }

View File

@ -309,8 +309,8 @@ impl<'a> Printer for InteractivePrinter<'a> {
} else { } else {
None None
} }
} }
_ => None _ => None,
}; };
// Line contents. // Line contents.