mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-29 03:04:04 +01:00
cargo fmt --check
This commit is contained in:
parent
debf7c3fd3
commit
a3234bf8ea
@ -166,15 +166,13 @@ impl<'a> Printer for SimplePrinter<'a> {
|
||||
OutputHandle::IoWrite(handle) => {
|
||||
if self.config.style_components.numbers() {
|
||||
handle.write_all(
|
||||
format!(
|
||||
"{line_number:4} {}",
|
||||
String::from_utf8_lossy(line_buffer)
|
||||
).as_bytes()
|
||||
format!("{line_number:4} {}", String::from_utf8_lossy(line_buffer))
|
||||
.as_bytes(),
|
||||
)?;
|
||||
} else {
|
||||
handle.write_all(line_buffer)?;
|
||||
}
|
||||
},
|
||||
}
|
||||
OutputHandle::FmtWrite(handle) => {
|
||||
write!(
|
||||
handle,
|
||||
|
Loading…
Reference in New Issue
Block a user