mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Merge #9326
9326: Minor: Fix line numbering in tidy r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
86c3c42d8e
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ fn check_trailing_ws(path: &Path, text: &str) {
|
|||
}
|
||||
for (line_number, line) in text.lines().enumerate() {
|
||||
if line.chars().last().map(char::is_whitespace) == Some(true) {
|
||||
panic!("Trailing whitespace in {} at line {}", path.display(), line_number)
|
||||
panic!("Trailing whitespace in {} at line {}", path.display(), line_number + 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue