We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d863cc commit 07ee6ebCopy full SHA for 07ee6eb
xtask/src/tidy.rs
@@ -371,7 +371,7 @@ fn check_trailing_ws(path: &Path, text: &str) {
371
}
372
for (line_number, line) in text.lines().enumerate() {
373
if line.chars().last().map(char::is_whitespace) == Some(true) {
374
- panic!("Trailing whitespace in {} at line {}", path.display(), line_number)
+ panic!("Trailing whitespace in {} at line {}", path.display(), line_number + 1)
375
376
377
0 commit comments