mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03: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 @@ fn cp_link_filtered_recurse(
|
||||
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