@@ -26,7 +26,7 @@ const BATCHES_DIR: &str = "crash_batches";
2626const ITER_DIR : & str = "crash_iter" ;
2727const TX_DIR : & str = "crash_tx" ;
2828
29- const TESTS : [ ( & ' static str , fn ( ) ) ; 4 ] = [
29+ const TESTS : [ ( & str , fn ( ) ) ; 4 ] = [
3030 ( RECOVERY_DIR , crash_recovery) ,
3131 ( BATCHES_DIR , crash_batches) ,
3232 ( ITER_DIR , concurrent_crash_iter) ,
@@ -47,7 +47,7 @@ fn main() {
4747 match env:: var ( TEST_ENV_VAR ) {
4848 Err ( VarError :: NotPresent ) => {
4949 let filtered: Vec < ( & ' static str , fn ( ) ) > =
50- if let Some ( filter) = std:: env:: args ( ) . skip ( 1 ) . next ( ) {
50+ if let Some ( filter) = std:: env:: args ( ) . nth ( 1 ) {
5151 TESTS
5252 . iter ( )
5353 . filter ( |( name, _) | name. contains ( & filter) )
@@ -69,7 +69,7 @@ fn main() {
6969 let mut tests = vec ! [ ] ;
7070 for ( test_name, test_fn) in filtered. into_iter ( ) {
7171 let test = thread:: spawn ( move || {
72- let res = std:: panic:: catch_unwind ( || test_fn ( ) ) ;
72+ let res = std:: panic:: catch_unwind ( test_fn) ;
7373 println ! (
7474 "test {} ... {}" ,
7575 test_name,
0 commit comments