File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use xz2::read::XzDecoder;
25
25
26
26
static SUPPORTED_CHANNELS : & [ & str ] = & [ "nightly" , "beta" , "stable" ] ;
27
27
28
+ #[ allow( clippy:: struct_excessive_bools) ]
28
29
#[ derive( StructOpt , Debug ) ]
29
30
#[ structopt( set_term_width( 0 ) ) ]
30
31
struct Args {
@@ -315,7 +316,7 @@ fn fetch_master_commit_via_git() -> Result<String, Error> {
315
316
output
316
317
. stdout
317
318
. get( ..40 )
318
- . map_or( false , |h| h. iter( ) . all( |c| c . is_ascii_hexdigit( ) ) ) ,
319
+ . map_or( false , |h| h. iter( ) . all( u8 :: is_ascii_hexdigit) ) ,
319
320
"git ls-remote does not return a commit"
320
321
) ;
321
322
@@ -355,7 +356,7 @@ fn fetch_master_commit_via_http(
355
356
if master_commit. len ( ) == 40
356
357
&& master_commit
357
358
. chars ( )
358
- . all ( |c| '0' <= c && c <= '9' || 'a' <= c && c <= 'f' )
359
+ . all ( |c| matches ! ( c , '0' ..= '9' | 'a' ..= 'f' ) )
359
360
{
360
361
let out = stdout ( ) ;
361
362
let mut lock = out. lock ( ) ;
@@ -510,7 +511,7 @@ fn report_warn(warn: &Error) {
510
511
for cause in warn. chain ( ) . skip ( 1 ) {
511
512
eprintln ! ( "{} {}" , Yellow . bold( ) . paint( "caused by:" ) , cause) ;
512
513
}
513
- eprintln ! ( "" ) ;
514
+ eprintln ! ( ) ;
514
515
}
515
516
516
517
fn main ( ) {
You can’t perform that action at this time.
0 commit comments