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_codegen_llvm/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_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 37825cc3fc7..ff9d90128f7 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -1922,7 +1922,7 @@ enum VariantInfo<'a, 'tcx> { impl<'tcx> VariantInfo<'_, 'tcx> { fn map_struct_name<R>(&self, f: impl FnOnce(&str) -> R) -> R { match self { - VariantInfo::Adt(variant) => f(&variant.ident.as_str()), + VariantInfo::Adt(variant) => f(variant.ident.as_str()), VariantInfo::Generator { variant_index, .. } => { f(&GeneratorSubsts::variant_name(*variant_index)) } |
