diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2019-06-08 19:06:58 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2019-06-15 20:46:00 +0900 |
| commit | 6a0abd60486d7301dea849e7107bc92380e6045e (patch) | |
| tree | 6eb5af0a7c8a51aa1711e96da10fec8fe0ef31d3 /src/librustc_codegen_llvm/back | |
| parent | 165842ba1fe09b6e0f142dc3cb27597b85b96e85 (diff) | |
| download | rust-6a0abd60486d7301dea849e7107bc92380e6045e.tar.gz rust-6a0abd60486d7301dea849e7107bc92380e6045e.zip | |
Remove unnecessary `.clone()`
Diffstat (limited to 'src/librustc_codegen_llvm/back')
| -rw-r--r-- | src/librustc_codegen_llvm/back/lto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/lto.rs b/src/librustc_codegen_llvm/back/lto.rs index 74cda2d2fd1..5d3cc0c0a25 100644 --- a/src/librustc_codegen_llvm/back/lto.rs +++ b/src/librustc_codegen_llvm/back/lto.rs @@ -279,7 +279,7 @@ fn fat_lto(cgcx: &CodegenContext<LlvmCodegenBackend>, } })); serialized_modules.extend(cached_modules.into_iter().map(|(buffer, wp)| { - (buffer, CString::new(wp.cgu_name.clone()).unwrap()) + (buffer, CString::new(wp.cgu_name).unwrap()) })); // For all serialized bitcode files we parse them and link them in as we did |
