about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-11 14:58:08 -0400
committerMichael Goulet <michael@errs.io>2024-09-11 17:52:53 -0400
commit6d064295c8fb7413cb0500289f922f8d7feb38dc (patch)
tree1c0746343653491bcf5e0290b88db58bfeb253d2 /compiler/rustc_errors/src/diagnostic.rs
parent5a2dd7d4f3210629e65879aeecbe643ba3b86bb4 (diff)
downloadrust-6d064295c8fb7413cb0500289f922f8d7feb38dc.tar.gz
rust-6d064295c8fb7413cb0500289f922f8d7feb38dc.zip
clippy::useless_conversion
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic.rs')
-rw-r--r--compiler/rustc_errors/src/diagnostic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs
index 412a2c17081..7a4d8dba179 100644
--- a/compiler/rustc_errors/src/diagnostic.rs
+++ b/compiler/rustc_errors/src/diagnostic.rs
@@ -681,10 +681,10 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
             " ".repeat(expected_padding),
             expected_label
         ))];
-        msg.extend(expected.0.into_iter());
+        msg.extend(expected.0);
         msg.push(StringPart::normal(format!("`{expected_extra}\n")));
         msg.push(StringPart::normal(format!("{}{} `", " ".repeat(found_padding), found_label)));
-        msg.extend(found.0.into_iter());
+        msg.extend(found.0);
         msg.push(StringPart::normal(format!("`{found_extra}")));
 
         // For now, just attach these as notes.