Do not call fs::remove_file in cp_link_filtered_recurse
The target is removed by `copy_link` too, so no need to duplicate the syscall.
This commit is contained in:
parent
1ae7c49072
commit
5107ac92bb
1 changed files with 0 additions and 1 deletions
|
|
@ -1862,7 +1862,6 @@ impl Build {
|
|||
self.create_dir(&dst);
|
||||
self.cp_link_filtered_recurse(&path, &dst, &relative, filter);
|
||||
} else {
|
||||
let _ = fs::remove_file(&dst);
|
||||
self.copy_link(&path, &dst, FileType::Regular);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue