From 76832effd0ff530ba221efcc623fcaae0b91af89 Mon Sep 17 00:00:00 2001 From: Domenico Mastrangelo Date: Sat, 1 Jun 2024 22:53:31 +0200 Subject: [PATCH 1/3] cargo fmt --- src/printer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/printer.rs b/src/printer.rs index c876daac..fafcffa1 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -165,7 +165,8 @@ impl<'a> Printer for SimplePrinter<'a> { } else { match handle { OutputHandle::IoWrite(handle) => { - if self.config.style_components.numbers() && !std::io::stdout().is_terminal() + if self.config.style_components.numbers() + && !std::io::stdout().is_terminal() { handle.write_all( format!("{line_number:4} {}", String::from_utf8_lossy(line_buffer)) From 8ad55ab9f1ebec0831e3504bf128f0a4c3143f77 Mon Sep 17 00:00:00 2001 From: Domenico Mastrangelo Date: Sat, 1 Jun 2024 23:05:01 +0200 Subject: [PATCH 2/3] Trigger Build From 320f42b1b0ccf04697787e592f23f610a3e83710 Mon Sep 17 00:00:00 2001 From: Domenico Mastrangelo Date: Sun, 2 Jun 2024 16:23:24 +0200 Subject: [PATCH 3/3] Added current line number prefix --- tests/integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 9b68bf8f..86ca104f 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1779,7 +1779,7 @@ fn file_with_invalid_utf8_filename() { .arg(file_path.as_os_str()) .assert() .success() - .stdout("dummy content\n"); + .stdout(" 1 dummy content\n"); } #[test]