diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-11 21:54:36 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-11 21:54:36 +0100 |
| commit | 0564de10b1d4cd7340dfd8b91af2c88782af2a19 (patch) | |
| tree | 2b8a1c162a29d686637de9015469aba0960c5a68 /compiler/rustc_resolve/src | |
| parent | 57010939ed1d00076b4af0ed06a81ec69ea5e4a8 (diff) | |
| download | rust-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.rs | 2 |
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, |
