@@ -536,7 +536,7 @@ mod tests {
536536
537537 #[ test]
538538 fn test_date_from_ymd ( ) {
539- let ymd_opt = |& : y, m, d| NaiveDate :: from_ymd_opt ( y, m, d) ;
539+ let ymd_opt = |y, m, d| NaiveDate :: from_ymd_opt ( y, m, d) ;
540540
541541 assert ! ( ymd_opt( 2012 , 0 , 1 ) . is_none( ) ) ;
542542 assert ! ( ymd_opt( 2012 , 1 , 1 ) . is_some( ) ) ;
@@ -552,8 +552,8 @@ mod tests {
552552
553553 #[ test]
554554 fn test_date_from_yo ( ) {
555- let yo_opt = |& : y, o| NaiveDate :: from_yo_opt ( y, o) ;
556- let ymd = |& : y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
555+ let yo_opt = |y, o| NaiveDate :: from_yo_opt ( y, o) ;
556+ let ymd = |y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
557557
558558 assert_eq ! ( yo_opt( 2012 , 0 ) , None ) ;
559559 assert_eq ! ( yo_opt( 2012 , 1 ) , Some ( ymd( 2012 , 1 , 1 ) ) ) ;
@@ -582,8 +582,8 @@ mod tests {
582582
583583 #[ test]
584584 fn test_date_from_isoywd ( ) {
585- let isoywd_opt = |& : y, w, d| NaiveDate :: from_isoywd_opt ( y, w, d) ;
586- let ymd = |& : y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
585+ let isoywd_opt = |y, w, d| NaiveDate :: from_isoywd_opt ( y, w, d) ;
586+ let ymd = |y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
587587
588588 assert_eq ! ( isoywd_opt( 2004 , 0 , Weekday :: Sun ) , None ) ;
589589 assert_eq ! ( isoywd_opt( 2004 , 1 , Weekday :: Mon ) , Some ( ymd( 2003 , 12 , 29 ) ) ) ;
@@ -645,7 +645,7 @@ mod tests {
645645
646646 #[ test]
647647 fn test_date_from_num_days_from_ce ( ) {
648- let from_ndays_from_ce = |& : days| NaiveDate :: from_num_days_from_ce_opt ( days) ;
648+ let from_ndays_from_ce = |days| NaiveDate :: from_num_days_from_ce_opt ( days) ;
649649 assert_eq ! ( from_ndays_from_ce( 1 ) , Some ( NaiveDate :: from_ymd( 1 , 1 , 1 ) ) ) ;
650650 assert_eq ! ( from_ndays_from_ce( 2 ) , Some ( NaiveDate :: from_ymd( 1 , 1 , 2 ) ) ) ;
651651 assert_eq ! ( from_ndays_from_ce( 31 ) , Some ( NaiveDate :: from_ymd( 1 , 1 , 31 ) ) ) ;
@@ -772,7 +772,7 @@ mod tests {
772772
773773 #[ test]
774774 fn test_date_succ ( ) {
775- let ymd = |& : y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
775+ let ymd = |y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
776776 assert_eq ! ( ymd( 2014 , 5 , 6 ) . succ_opt( ) , Some ( ymd( 2014 , 5 , 7 ) ) ) ;
777777 assert_eq ! ( ymd( 2014 , 5 , 31 ) . succ_opt( ) , Some ( ymd( 2014 , 6 , 1 ) ) ) ;
778778 assert_eq ! ( ymd( 2014 , 12 , 31 ) . succ_opt( ) , Some ( ymd( 2015 , 1 , 1 ) ) ) ;
@@ -782,7 +782,7 @@ mod tests {
782782
783783 #[ test]
784784 fn test_date_pred ( ) {
785- let ymd = |& : y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
785+ let ymd = |y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
786786 assert_eq ! ( ymd( 2016 , 3 , 1 ) . pred_opt( ) , Some ( ymd( 2016 , 2 , 29 ) ) ) ;
787787 assert_eq ! ( ymd( 2015 , 1 , 1 ) . pred_opt( ) , Some ( ymd( 2014 , 12 , 31 ) ) ) ;
788788 assert_eq ! ( ymd( 2014 , 6 , 1 ) . pred_opt( ) , Some ( ymd( 2014 , 5 , 31 ) ) ) ;
@@ -903,7 +903,7 @@ mod tests {
903903
904904 #[ test]
905905 fn test_date_parse_from_str ( ) {
906- let ymd = |& : y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
906+ let ymd = |y, m, d| NaiveDate :: from_ymd ( y, m, d) ;
907907 assert_eq ! ( NaiveDate :: parse_from_str( "2014-5-7T12:34:56+09:30" , "%Y-%m-%dT%H:%M:%S%z" ) ,
908908 Ok ( ymd( 2014 , 5 , 7 ) ) ) ; // ignore time and offset
909909 assert_eq ! ( NaiveDate :: parse_from_str( "2015-W06-1=2015-033" , "%G-W%V-%u = %Y-%j" ) ,
0 commit comments