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 @@ -3,14 +3,11 @@ use std::io::ErrorKind;
33use std:: process:: { Command , Stdio } ;
44
55pub fn check ( bad : & mut bool ) {
6- let result = Command :: new ( "x" )
7- . arg ( "--version" )
8- . stdout ( Stdio :: piped ( ) )
9- . spawn ( ) ;
6+ let result = Command :: new ( "x" ) . arg ( "--version" ) . stdout ( Stdio :: piped ( ) ) . spawn ( ) ;
107 let child = match result {
118 Ok ( child) => child,
129 Err ( e) => match e. kind ( ) {
13- ErrorKind :: NotFound => return ( ) ,
10+ ErrorKind :: NotFound => return ,
1411 _ => return tidy_error ! ( bad, "{}" , e) ,
1512 } ,
1613 } ;
@@ -28,7 +25,10 @@ pub fn check(bad: &mut bool) {
2825 build : BuildMetadata :: EMPTY ,
2926 } ;
3027 if version < expected {
31- return tidy_error ! ( bad, "Current version of x is {version} Consider updating to the newer version of x by running `cargo install --path src/tools/x`" ) ;
28+ return tidy_error ! (
29+ bad,
30+ "Current version of x is {version} Consider updating to the newer version of x by running `cargo install --path src/tools/x`"
31+ ) ;
3232 }
3333 } else {
3434 return tidy_error ! ( bad, "{}" , output. status) ;
You can’t perform that action at this time.
0 commit comments