aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-06-18 12:47:26 +0100
committerLaurenČ›iu Nicola <[email protected]>2021-06-18 12:47:26 +0100
commit07ee6ebf5630382bf61fd2122b81a66acd50d708 (patch)
tree05840c1e49a74ef5483d1670f51181b868933160 /xtask/src
parent0d863ccea96c6c3256fad12807a0eedbfccd8294 (diff)
Fix line numbering in tidy
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/tidy.rs2
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}