We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ba1a19 commit 15dcda3Copy full SHA for 15dcda3
src/librustc_codegen_ssa/back/write.rs
@@ -490,7 +490,7 @@ fn copy_all_cgu_workproducts_to_incr_comp_cache_dir(
490
let _timer = sess.timer("copy_all_cgu_workproducts_to_incr_comp_cache_dir");
491
492
for module in compiled_modules.modules.iter().filter(|m| m.kind == ModuleKind::Regular) {
493
- let path = module.object.as_ref().map(|path| path.clone());
+ let path = module.object.as_ref().cloned();
494
495
if let Some((id, product)) =
496
copy_cgu_workproduct_to_incr_comp_cache_dir(sess, &module.name, &path)
0 commit comments