Skip to content

Commit 4d892a5

Browse files
committed
Fix codes that make dogfood fail
1 parent cd02685 commit 4d892a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lint_message_convention.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ fn lint_message_convention() {
8989
.filter(|message| !message.bad_lines.is_empty())
9090
.collect();
9191

92-
bad_tests.iter().for_each(|message| {
92+
for message in &bad_tests {
9393
eprintln!(
9494
"error: the test '{}' contained the following nonconforming lines :",
9595
message.path.display()
9696
);
9797
message.bad_lines.iter().for_each(|line| eprintln!("{}", line));
9898
eprintln!("\n\n");
99-
});
99+
}
100100

101101
eprintln!(
102102
"\n\n\nLint message should not start with a capital letter and should not have punctuation at the end of the message unless multiple sentences are needed."

0 commit comments

Comments
 (0)