diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-10-26 03:11:11 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-10-26 12:07:39 +0900 |
| commit | 3878d24ef6922c133539fe67e0c907166f6261cb (patch) | |
| tree | fb2b6e405d7b06be2b586684fd857e2b7069a44f /src/librustc_codegen_utils | |
| parent | 7b0735a832dd49cb482084590eb0f2577955c079 (diff) | |
| download | rust-3878d24ef6922c133539fe67e0c907166f6261cb.tar.gz rust-3878d24ef6922c133539fe67e0c907166f6261cb.zip | |
Remove redundant clone
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/link.rs | 2 |
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..]) } |
