diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-18 12:48:01 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-18 12:48:01 +0100 |
commit | 86c3c42d8ed060b66df95f33c20c1f5778c38ee0 (patch) | |
tree | 05840c1e49a74ef5483d1670f51181b868933160 | |
parent | 0d863ccea96c6c3256fad12807a0eedbfccd8294 (diff) | |
parent | 07ee6ebf5630382bf61fd2122b81a66acd50d708 (diff) |
Merge #9326
9326: Minor: Fix line numbering in tidy r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <[email protected]>
-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 | } |