diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2021-12-15 16:13:11 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2021-12-15 17:32:42 +1100 |
| commit | b1c934ebb8b881977a93c05c15caa88921792d3b (patch) | |
| tree | 181fbc5557c36965dedd37bb2931a06e6deb8647 /compiler/rustc_save_analysis/src | |
| parent | 056d48a2c97860b2cce936f310331e606076fa01 (diff) | |
| download | rust-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.rs | 2 |
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(¶m.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(), |
