diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/tidy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/tidy.rs b/xtask/src/tidy.rs index 06219d155..a9d434e20 100644 --- a/xtask/src/tidy.rs +++ b/xtask/src/tidy.rs | |||
@@ -371,7 +371,7 @@ fn check_trailing_ws(path: &Path, text: &str) { | |||
371 | } | 371 | } |
372 | for (line_number, line) in text.lines().enumerate() { | 372 | for (line_number, line) in text.lines().enumerate() { |
373 | if line.chars().last().map(char::is_whitespace) == Some(true) { | 373 | if line.chars().last().map(char::is_whitespace) == Some(true) { |
374 | panic!("Trailing whitespace in {} at line {}", path.display(), line_number) | 374 | panic!("Trailing whitespace in {} at line {}", path.display(), line_number + 1) |
375 | } | 375 | } |
376 | } | 376 | } |
377 | } | 377 | } |