File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
#![ cfg( feature = "lintcheck" ) ]
8
8
#![ allow( clippy:: filter_map, clippy:: collapsible_else_if) ]
9
+ #![ allow( clippy:: blocks_in_if_conditions) ] // FP on `if x.iter().any(|x| ...)`
9
10
10
11
use crate :: clippy_project_root;
11
12
@@ -330,8 +331,9 @@ impl LintcheckConfig {
330
331
// by default use a single thread
331
332
let max_jobs = match clap_config. value_of ( "threads" ) {
332
333
Some ( threads) => {
333
- let err_msg = format ! ( "Failed to parse '{}' to a digit" , threads) ;
334
- let threads: usize = threads. parse ( ) . expect ( & err_msg) ;
334
+ let threads: usize = threads
335
+ . parse ( )
336
+ . unwrap_or_else ( |_| panic ! ( "Failed to parse '{}' to a digit" , threads) ) ;
335
337
if threads == 0 {
336
338
// automatic choice
337
339
// Rayon seems to return thread count so half that for core count
@@ -751,9 +753,7 @@ fn lintcheck_test() {
751
753
"lintcheck" ,
752
754
"--" ,
753
755
"lintcheck" ,
754
- //"--",
755
756
"--crates-toml" ,
756
- //"--",
757
757
"clippy_dev/ci_test_sources.toml" ,
758
758
] ;
759
759
let status = std:: process:: Command :: new ( "cargo" )
You can’t perform that action at this time.
0 commit comments