File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ use std::path::Path;
22
22
use Build ;
23
23
24
24
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" ) ) ;
28
28
29
29
for host in build. config . host . iter ( ) {
30
30
let entries = match build. out . join ( host) . read_dir ( ) {
@@ -38,12 +38,12 @@ pub fn clean(build: &Build) {
38
38
continue
39
39
}
40
40
let path = t ! ( entry. path( ) . canonicalize( ) ) ;
41
- rm_rf ( build , & path) ;
41
+ rm_rf ( & path) ;
42
42
}
43
43
}
44
44
}
45
45
46
- fn rm_rf ( build : & Build , path : & Path ) {
46
+ fn rm_rf ( path : & Path ) {
47
47
if !path. exists ( ) {
48
48
return
49
49
}
@@ -55,7 +55,7 @@ fn rm_rf(build: &Build, path: &Path) {
55
55
let file = t ! ( file) . path ( ) ;
56
56
57
57
if file. is_dir ( ) {
58
- rm_rf ( build , & file) ;
58
+ rm_rf ( & file) ;
59
59
} else {
60
60
// On windows we can't remove a readonly file, and git will
61
61
// often clone files as readonly. As a result, we have some
You can’t perform that action at this time.
0 commit comments