about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYoshitomo Nakanishi <yurayura.rounin.3@gmail.com>2021-03-13 15:23:57 +0900
committerYoshitomo Nakanishi <yurayura.rounin.3@gmail.com>2021-04-01 00:05:42 +0900
commit1109dc8838b8af0ad7e2b8eb3a7039c907188082 (patch)
treec33f746ca13fd0cfd778530b1ccc89f3ce68fb53
parentf2cc995bcfdc86a564b4040585f97f012be9454b (diff)
downloadrust-1109dc8838b8af0ad7e2b8eb3a7039c907188082.tar.gz
rust-1109dc8838b8af0ad7e2b8eb3a7039c907188082.zip
Fix codes that make dogfood fail
-rw-r--r--tests/lint_message_convention.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lint_message_convention.rs b/tests/lint_message_convention.rs
index 3f754c255b7..2f8989c8e11 100644
--- a/tests/lint_message_convention.rs
+++ b/tests/lint_message_convention.rs
@@ -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."