about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-11 21:54:36 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2023-12-11 21:54:36 +0100
commit0564de10b1d4cd7340dfd8b91af2c88782af2a19 (patch)
tree2b8a1c162a29d686637de9015469aba0960c5a68 /compiler/rustc_resolve/src
parent57010939ed1d00076b4af0ed06a81ec69ea5e4a8 (diff)
downloadrust-0564de10b1d4cd7340dfd8b91af2c88782af2a19.tar.gz
rust-0564de10b1d4cd7340dfd8b91af2c88782af2a19.zip
remove some redundant clones
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/imports.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs
index c2306e3ea7d..e601ceaa50c 100644
--- a/compiler/rustc_resolve/src/imports.rs
+++ b/compiler/rustc_resolve/src/imports.rs
@@ -1002,7 +1002,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
                             UNUSED_IMPORTS,
                             id,
                             import.span,
-                            msg.to_string(),
+                            msg,
                             BuiltinLintDiagnostics::RedundantImportVisibility {
                                 max_vis: max_vis.to_string(def_id, self.tcx),
                                 span: import.span,