diff options
Diffstat (limited to 'xtask/tests')
-rw-r--r-- | xtask/tests/tidy-tests/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/tests/tidy-tests/main.rs b/xtask/tests/tidy-tests/main.rs index 4f525fcd0..e5247854a 100644 --- a/xtask/tests/tidy-tests/main.rs +++ b/xtask/tests/tidy-tests/main.rs | |||
@@ -46,9 +46,9 @@ fn check_trailing_ws(path: &Path, text: &str) { | |||
46 | if is_exclude_dir(path, &["test_data"]) { | 46 | if is_exclude_dir(path, &["test_data"]) { |
47 | return; | 47 | return; |
48 | } | 48 | } |
49 | for line in text.lines() { | 49 | for (line_number, line) in text.lines().enumerate() { |
50 | if line.chars().last().map(char::is_whitespace) == Some(true) { | 50 | if line.chars().last().map(char::is_whitespace) == Some(true) { |
51 | panic!("Trailing whitespace in {}", path.display()) | 51 | panic!("Trailing whitespace in {} at line {}", path.display(), line_number) |
52 | } | 52 | } |
53 | } | 53 | } |
54 | } | 54 | } |