mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 09:47:57 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user