about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2019-06-08 19:06:58 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2019-06-15 20:46:00 +0900
commit6a0abd60486d7301dea849e7107bc92380e6045e (patch)
tree6eb5af0a7c8a51aa1711e96da10fec8fe0ef31d3 /src/librustc_codegen_llvm/debuginfo
parent165842ba1fe09b6e0f142dc3cb27597b85b96e85 (diff)
downloadrust-6a0abd60486d7301dea849e7107bc92380e6045e.tar.gz
rust-6a0abd60486d7301dea849e7107bc92380e6045e.zip
Remove unnecessary `.clone()`
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/metadata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs
index d43adc9cb92..fbeda43af42 100644
--- a/src/librustc_codegen_llvm/debuginfo/metadata.rs
+++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs
@@ -1609,7 +1609,7 @@ impl<'tcx> VariantInfo<'tcx> {
                 // with every variant, make each variant name be just the value
                 // of the discriminant. The struct name for the variant includes
                 // the actual variant description.
-                format!("{}", variant_index.as_usize()).to_string()
+                format!("{}", variant_index.as_usize())
             }
         }
     }