File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5295,7 +5295,6 @@ name = "tidy"
52955295version = " 0.1.0"
52965296dependencies = [
52975297 " cargo_metadata 0.14.0" ,
5298- " crossbeam-utils" ,
52995298 " lazy_static" ,
53005299 " regex" ,
53015300 " walkdir" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ cargo_metadata = "0.14"
99regex = " 1"
1010lazy_static = " 1"
1111walkdir = " 2"
12- crossbeam-utils = " 0.8.0"
1312
1413[[bin ]]
1514name = " rust-tidy"
Original file line number Diff line number Diff line change 66
77use tidy:: * ;
88
9- use crossbeam_utils:: thread:: { scope, ScopedJoinHandle } ;
109use std:: collections:: VecDeque ;
1110use std:: env;
1211use std:: num:: NonZeroUsize ;
1312use std:: path:: PathBuf ;
1413use std:: process;
1514use std:: str:: FromStr ;
1615use std:: sync:: atomic:: { AtomicBool , Ordering } ;
16+ use std:: thread:: { scope, ScopedJoinHandle } ;
1717
1818fn main ( ) {
1919 let root_path: PathBuf = env:: args_os ( ) . nth ( 1 ) . expect ( "need path to root of repo" ) . into ( ) ;
@@ -44,7 +44,7 @@ fn main() {
4444 handles. pop_front( ) . unwrap( ) . join( ) . unwrap( ) ;
4545 }
4646
47- let handle = s. spawn( |_ | {
47+ let handle = s. spawn( || {
4848 let mut flag = false ;
4949 $p:: check( $( $args) ,* , & mut flag) ;
5050 if ( flag) {
@@ -102,8 +102,7 @@ fn main() {
102102 r
103103 } ;
104104 check ! ( unstable_book, & src_path, collected) ;
105- } )
106- . unwrap ( ) ;
105+ } ) ;
107106
108107 if bad. load ( Ordering :: Relaxed ) {
109108 eprintln ! ( "some tidy checks failed" ) ;
You can’t perform that action at this time.
0 commit comments