Skip to content

Commit

Permalink
Fix codes that make dogfood fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Nak committed Mar 14, 2021
1 parent cd02685 commit 4d892a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lint_message_convention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ fn lint_message_convention() {
.filter(|message| !message.bad_lines.is_empty())
.collect();

bad_tests.iter().for_each(|message| {
for message in &bad_tests {
eprintln!(
"error: the test '{}' contained the following nonconforming lines :",
message.path.display()
);
message.bad_lines.iter().for_each(|line| eprintln!("{}", line));
eprintln!("\n\n");
});
}

eprintln!(
"\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."
Expand Down

0 comments on commit 4d892a5

Please sign in to comment.