summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2018-10-26 03:11:11 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2018-10-26 12:07:39 +0900
commit3878d24ef6922c133539fe67e0c907166f6261cb (patch)
treefb2b6e405d7b06be2b586684fd857e2b7069a44f /src/librustc_codegen_utils
parent7b0735a832dd49cb482084590eb0f2577955c079 (diff)
downloadrust-3878d24ef6922c133539fe67e0c907166f6261cb.tar.gz
rust-3878d24ef6922c133539fe67e0c907166f6261cb.zip
Remove redundant clone
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_utils/link.rs b/src/librustc_codegen_utils/link.rs
index 2a1fbe6ace5..66e98793f42 100644
--- a/src/librustc_codegen_utils/link.rs
+++ b/src/librustc_codegen_utils/link.rs
@@ -138,7 +138,7 @@ pub fn filename_for_input(sess: &Session,
             let suffix = &sess.target.target.options.exe_suffix;
             let out_filename = outputs.path(OutputType::Exe);
             if suffix.is_empty() {
-                out_filename.to_path_buf()
+                out_filename
             } else {
                 out_filename.with_extension(&suffix[1..])
             }