@@ -590,6 +590,7 @@ mod spec {
590590
591591 #[ test]
592592 fn alternation_with_optional ( ) {
593+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
593594 let expr = Expression :: regex ( "a/b(c)" )
594595 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
595596
@@ -598,6 +599,7 @@ mod spec {
598599
599600 #[ test]
600601 fn alternation ( ) {
602+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
601603 let expr = Expression :: regex ( "a/b c/d/e" )
602604 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
603605
@@ -611,6 +613,7 @@ mod spec {
611613
612614 #[ test]
613615 fn empty ( ) {
616+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
614617 let expr =
615618 Expression :: regex ( "" ) . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
616619
@@ -621,6 +624,7 @@ mod spec {
621624
622625 #[ test]
623626 fn escape_regex_characters ( ) {
627+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
624628 let expr = Expression :: regex ( r"^$[]\()\{}\\.|?*+" )
625629 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
626630
@@ -630,6 +634,7 @@ mod spec {
630634
631635 #[ test]
632636 fn optional ( ) {
637+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
633638 let expr = Expression :: regex ( "(a)" )
634639 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
635640
@@ -641,6 +646,7 @@ mod spec {
641646
642647 #[ test]
643648 fn parameter_int ( ) {
649+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
644650 let expr = Expression :: regex ( "{int}" )
645651 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
646652
@@ -653,6 +659,7 @@ mod spec {
653659
654660 #[ test]
655661 fn parameter_float ( ) {
662+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
656663 let expr = Expression :: regex ( "{float}" )
657664 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
658665
@@ -674,6 +681,7 @@ mod spec {
674681
675682 #[ test]
676683 fn parameter_word ( ) {
684+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
677685 let expr = Expression :: regex ( "{word}" )
678686 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
679687
@@ -685,6 +693,7 @@ mod spec {
685693
686694 #[ test]
687695 fn parameter_string ( ) {
696+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
688697 let expr = Expression :: regex ( "{string}" )
689698 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
690699
@@ -703,6 +712,7 @@ mod spec {
703712
704713 #[ test]
705714 fn parameter_all ( ) {
715+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
706716 let expr =
707717 Expression :: regex ( "{}" ) . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
708718
@@ -712,6 +722,7 @@ mod spec {
712722
713723 #[ test]
714724 fn text ( ) {
725+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
715726 let expr =
716727 Expression :: regex ( "a" ) . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
717728
@@ -721,9 +732,9 @@ mod spec {
721732 assert ! ( !expr. is_match( "ab" ) ) ;
722733 }
723734
724- #[ allow( clippy:: non_ascii_literal) ]
725735 #[ test]
726736 fn unicode ( ) {
737+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
727738 let expr = Expression :: regex ( "Привет, Мир(ы)!" )
728739 . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
729740
@@ -740,6 +751,7 @@ mod spec {
740751 assert_eq ! ( * not_found, "custom" ) ;
741752 }
742753 e @ ( Error :: Parsing ( _) | Error :: Regex ( _) ) => {
754+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
743755 panic ! ( "wrong err: {}" , e) ;
744756 }
745757 }
0 commit comments