File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5295,7 +5295,6 @@ name = "tidy"
5295
5295
version = " 0.1.0"
5296
5296
dependencies = [
5297
5297
" cargo_metadata 0.14.0" ,
5298
- " crossbeam-utils" ,
5299
5298
" lazy_static" ,
5300
5299
" regex" ,
5301
5300
" walkdir" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ cargo_metadata = "0.14"
9
9
regex = " 1"
10
10
lazy_static = " 1"
11
11
walkdir = " 2"
12
- crossbeam-utils = " 0.8.0"
13
12
14
13
[[bin ]]
15
14
name = " rust-tidy"
Original file line number Diff line number Diff line change 6
6
7
7
use tidy:: * ;
8
8
9
- use crossbeam_utils:: thread:: { scope, ScopedJoinHandle } ;
10
9
use std:: collections:: VecDeque ;
11
10
use std:: env;
12
11
use std:: num:: NonZeroUsize ;
13
12
use std:: path:: PathBuf ;
14
13
use std:: process;
15
14
use std:: str:: FromStr ;
16
15
use std:: sync:: atomic:: { AtomicBool , Ordering } ;
16
+ use std:: thread:: { scope, ScopedJoinHandle } ;
17
17
18
18
fn main ( ) {
19
19
let root_path: PathBuf = env:: args_os ( ) . nth ( 1 ) . expect ( "need path to root of repo" ) . into ( ) ;
@@ -44,7 +44,7 @@ fn main() {
44
44
handles. pop_front( ) . unwrap( ) . join( ) . unwrap( ) ;
45
45
}
46
46
47
- let handle = s. spawn( |_ | {
47
+ let handle = s. spawn( || {
48
48
let mut flag = false ;
49
49
$p:: check( $( $args) ,* , & mut flag) ;
50
50
if ( flag) {
@@ -102,8 +102,7 @@ fn main() {
102
102
r
103
103
} ;
104
104
check ! ( unstable_book, & src_path, collected) ;
105
- } )
106
- . unwrap ( ) ;
105
+ } ) ;
107
106
108
107
if bad. load ( Ordering :: Relaxed ) {
109
108
eprintln ! ( "some tidy checks failed" ) ;
You can’t perform that action at this time.
0 commit comments