Skip to content

Commit 5a1a111

Browse files
committed
Avoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls
1 parent d5cb2be commit 5a1a111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/aot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn emit_module(
6969
rustc_incremental::copy_cgu_workproduct_to_incr_comp_cache_dir(
7070
tcx.sess,
7171
&name,
72-
&Some(tmp_file.clone()),
72+
Some(&tmp_file),
7373
)
7474
};
7575

0 commit comments

Comments
 (0)