about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/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_codegen_llvm/src
parent056d48a2c97860b2cce936f310331e606076fa01 (diff)
downloadrust-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.rs2
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))
             }