Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/tidy.rs')
| -rw-r--r-- | xtask/src/tidy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/tidy.rs b/xtask/src/tidy.rs index 33145a8834..a4e0623d82 100644 --- a/xtask/src/tidy.rs +++ b/xtask/src/tidy.rs @@ -205,9 +205,9 @@ fn check_test_attrs(path: &Path, text: &str) { } if let Some((line, _)) = text .lines() - .tuple_windows() + .array_windows::<2>() .enumerate() - .find(|(_, (a, b))| b.contains("#[should_panic") && !a.contains("FIXME")) + .find(|(_, [a, b])| b.contains("#[should_panic") && !a.contains("FIXME")) { panic!( "\ndon't add `#[should_panic]` tests, see:\n\n {}\n\n {}:{line}\n", |