From 788106005f86cb7ea294e235d01046f328d9bb96 Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Tue, 10 Jun 2025 13:07:43 +0200 Subject: [PATCH] refactor: change error message formatting --- tests/src/collect.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/src/collect.rs b/tests/src/collect.rs index 456db028d..173488b01 100644 --- a/tests/src/collect.rs +++ b/tests/src/collect.rs @@ -418,7 +418,10 @@ impl<'a> Parser<'a> { }; let start = self.parse_line_col()?; - let lines = Lines::try_from(&bytes).expect("Errors shouldn't be annotated for files that aren't human readable (not valid utf-8)"); + let lines = Lines::try_from(&bytes).expect( + "errors shouldn't be annotated for files \ + that aren't human readable (not valid utf-8)", + ); let range = if self.s.eat_if('-') { let (line, col) = start; let start = lines.line_column_to_byte(line, col);