1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-12 00:02:28 +01:00

Run 'cargo fmt'

This commit is contained in:
sharkdp
2020-02-28 10:27:06 +01:00
parent 4ac3161c19
commit ca066bf7cd
6 changed files with 19 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
use std::borrow::Cow;
use std::io::Write;
use std::vec::Vec;
use std::borrow::Cow;
use ansi_term::Colour::{Fixed, Green, Red, Yellow};
use ansi_term::Style;
@@ -228,7 +228,9 @@ impl<'a> Printer for InteractivePrinter<'a> {
if !self.config.output_components.header() {
if Some(ContentType::BINARY) == self.content_type && !self.config.show_nonprintable {
let input = match file {
InputFile::Ordinary(filename) => format!("file '{}'", filename.to_string_lossy()),
InputFile::Ordinary(filename) => {
format!("file '{}'", filename.to_string_lossy())
}
_ => "STDIN".into(),
};