about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-12-13 02:06:24 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-12-13 02:06:24 +0900
commitee40a67cd9283a9e8b0de87926581456252c6c9f (patch)
tree61de3c03f9e0643c40ddc028094bf1aeccd58792 /compiler/rustc_codegen_llvm/src/back
parentf34356eaceeb5540f4e2e20abc1d824daf395806 (diff)
downloadrust-ee40a67cd9283a9e8b0de87926581456252c6c9f.tar.gz
rust-ee40a67cd9283a9e8b0de87926581456252c6c9f.zip
remove unnecessary uses of `clone`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index 3fa21355b7f..b5e0736774f 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -206,7 +206,7 @@ pub(crate) fn run_thin(
 }
 
 pub(crate) fn prepare_thin(module: ModuleCodegen<ModuleLlvm>) -> (String, ThinBuffer) {
-    let name = module.name.clone();
+    let name = module.name;
     let buffer = ThinBuffer::new(module.module_llvm.llmod(), true);
     (name, buffer)
 }