diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-04 20:16:57 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-04 21:07:56 +0100 |
| commit | 28ef4169ccc62f3f1a35b6b002c29ea9bc6b2334 (patch) | |
| tree | 9fa3210bff41d8ad193f6cd48c14758c2f2f11a6 /compiler/rustc_save_analysis/src | |
| parent | 4961b107f204e15b26961eab0685df6be3ab03c6 (diff) | |
| download | rust-28ef4169ccc62f3f1a35b6b002c29ea9bc6b2334.tar.gz rust-28ef4169ccc62f3f1a35b6b002c29ea9bc6b2334.zip | |
clippy::perf fixes
Diffstat (limited to 'compiler/rustc_save_analysis/src')
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index f4567b33483..f1a5282b088 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -236,7 +236,7 @@ impl<'tcx> DumpVisitor<'tcx> { id, span, name: ident.to_string(), - qualname: format!("{}::{}", qualname, ident.to_string()), + qualname: format!("{}::{}", qualname, ident), value: typ, parent: None, children: vec![], @@ -889,7 +889,7 @@ impl<'tcx> DumpVisitor<'tcx> { // Rust uses the id of the pattern for var lookups, so we'll use it too. if !self.span.filter_generated(ident.span) { - let qualname = format!("{}${}", ident.to_string(), hir_id); + let qualname = format!("{}${}", ident, hir_id); let id = id_from_hir_id(hir_id, &self.save_ctxt); let span = self.span_from_span(ident.span); |
