Skip to content

Commit 8287d0d

Browse files
authored
Rollup merge of rust-lang#40562 - mbrubeck:bootstrap, r=alexcrichton
Remove unused param from bootstrap::clean::rm_rf None
2 parents 9032cea + befeb04 commit 8287d0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bootstrap/clean.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ use std::path::Path;
2222
use Build;
2323

2424
pub fn clean(build: &Build) {
25-
rm_rf(build, "tmp".as_ref());
26-
rm_rf(build, &build.out.join("tmp"));
27-
rm_rf(build, &build.out.join("dist"));
25+
rm_rf("tmp".as_ref());
26+
rm_rf(&build.out.join("tmp"));
27+
rm_rf(&build.out.join("dist"));
2828

2929
for host in build.config.host.iter() {
3030
let entries = match build.out.join(host).read_dir() {
@@ -38,12 +38,12 @@ pub fn clean(build: &Build) {
3838
continue
3939
}
4040
let path = t!(entry.path().canonicalize());
41-
rm_rf(build, &path);
41+
rm_rf(&path);
4242
}
4343
}
4444
}
4545

46-
fn rm_rf(build: &Build, path: &Path) {
46+
fn rm_rf(path: &Path) {
4747
if !path.exists() {
4848
return
4949
}
@@ -55,7 +55,7 @@ fn rm_rf(build: &Build, path: &Path) {
5555
let file = t!(file).path();
5656

5757
if file.is_dir() {
58-
rm_rf(build, &file);
58+
rm_rf(&file);
5959
} else {
6060
// On windows we can't remove a readonly file, and git will
6161
// often clone files as readonly. As a result, we have some

0 commit comments

Comments
 (0)