1
Fork 0

Rollup merge of #118840 - matthiaskrgr:cloooooone, r=compiler-errors

remove some redundant clones
This commit is contained in:
Matthias Krüger 2023-12-12 06:52:50 +01:00 committed by GitHub
commit fefa8fc6c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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,