about summary refs log tree commit diff
path: root/compiler/rustc_save_analysis/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2021-12-15 16:13:11 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2021-12-15 17:32:42 +1100
commitb1c934ebb8b881977a93c05c15caa88921792d3b (patch)
tree181fbc5557c36965dedd37bb2931a06e6deb8647 /compiler/rustc_save_analysis/src
parent056d48a2c97860b2cce936f310331e606076fa01 (diff)
downloadrust-b1c934ebb8b881977a93c05c15caa88921792d3b.tar.gz
rust-b1c934ebb8b881977a93c05c15caa88921792d3b.zip
Remove unnecessary sigils around `Ident::as_str()` calls.
Diffstat (limited to 'compiler/rustc_save_analysis/src')
-rw-r--r--compiler/rustc_save_analysis/src/sig.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/sig.rs b/compiler/rustc_save_analysis/src/sig.rs
index 7864b47ab0a..2d805f6836e 100644
--- a/compiler/rustc_save_analysis/src/sig.rs
+++ b/compiler/rustc_save_analysis/src/sig.rs
@@ -616,7 +616,7 @@ impl<'hir> Sig for hir::Generics<'hir> {
             if let hir::GenericParamKind::Const { .. } = param.kind {
                 param_text.push_str("const ");
             }
-            param_text.push_str(&param.name.ident().as_str());
+            param_text.push_str(param.name.ident().as_str());
             defs.push(SigElement {
                 id: id_from_hir_id(param.hir_id, scx),
                 start: offset + text.len(),