File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 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;
2222use Build ;
2323
2424pub 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
You can’t perform that action at this time.
0 commit comments