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 @@ -3,14 +3,11 @@ use std::io::ErrorKind;
3
3
use std:: process:: { Command , Stdio } ;
4
4
5
5
pub 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 ( ) ;
10
7
let child = match result {
11
8
Ok ( child) => child,
12
9
Err ( e) => match e. kind ( ) {
13
- ErrorKind :: NotFound => return ( ) ,
10
+ ErrorKind :: NotFound => return ,
14
11
_ => return tidy_error ! ( bad, "{}" , e) ,
15
12
} ,
16
13
} ;
@@ -28,7 +25,10 @@ pub fn check(bad: &mut bool) {
28
25
build : BuildMetadata :: EMPTY ,
29
26
} ;
30
27
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
+ ) ;
32
32
}
33
33
} else {
34
34
return tidy_error ! ( bad, "{}" , output. status) ;
You can’t perform that action at this time.
0 commit comments