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