Skip to content

Commit f3febf3

Browse files
committed
dont call remove_file in cp_filtered, as self.copy will call copy_internal which will call remove_file itself
1 parent 1d4a0bf commit f3febf3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/bootstrap/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,6 @@ impl Build {
15641564
self.create_dir(&dst);
15651565
self.recurse_(&path, &dst, &relative, filter);
15661566
} else {
1567-
let _ = fs::remove_file(&dst);
15681567
self.copy(&path, &dst);
15691568
}
15701569
}

0 commit comments

Comments
 (0)