]> git.lizzy.rs Git - rust.git/blobdiff - tests/lint_message_convention.rs
replace reference with value
[rust.git] / tests / lint_message_convention.rs
index 2e0f4e76075b38a1eaec8e6380001dcd5109886a..abd0d1bc5934f027698ce072d663157866e633dd 100644 (file)
@@ -102,7 +102,7 @@ fn lint_message_convention() {
             "error: the test '{}' contained the following nonconforming lines :",
             message.path.display()
         );
-        message.bad_lines.iter().for_each(|line| eprintln!("{}", line));
+        message.bad_lines.iter().for_each(|line| eprintln!("{line}"));
         eprintln!("\n\n");
     }