@@ -590,6 +590,7 @@ mod spec {
590
590
591
591
#[ test]
592
592
fn alternation_with_optional ( ) {
593
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
593
594
let expr = Expression :: regex ( "a/b(c)" )
594
595
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
595
596
@@ -598,6 +599,7 @@ mod spec {
598
599
599
600
#[ test]
600
601
fn alternation ( ) {
602
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
601
603
let expr = Expression :: regex ( "a/b c/d/e" )
602
604
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
603
605
@@ -611,6 +613,7 @@ mod spec {
611
613
612
614
#[ test]
613
615
fn empty ( ) {
616
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
614
617
let expr =
615
618
Expression :: regex ( "" ) . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
616
619
@@ -621,6 +624,7 @@ mod spec {
621
624
622
625
#[ test]
623
626
fn escape_regex_characters ( ) {
627
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
624
628
let expr = Expression :: regex ( r"^$[]\()\{}\\.|?*+" )
625
629
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
626
630
@@ -630,6 +634,7 @@ mod spec {
630
634
631
635
#[ test]
632
636
fn optional ( ) {
637
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
633
638
let expr = Expression :: regex ( "(a)" )
634
639
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
635
640
@@ -641,6 +646,7 @@ mod spec {
641
646
642
647
#[ test]
643
648
fn parameter_int ( ) {
649
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
644
650
let expr = Expression :: regex ( "{int}" )
645
651
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
646
652
@@ -653,6 +659,7 @@ mod spec {
653
659
654
660
#[ test]
655
661
fn parameter_float ( ) {
662
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
656
663
let expr = Expression :: regex ( "{float}" )
657
664
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
658
665
@@ -674,6 +681,7 @@ mod spec {
674
681
675
682
#[ test]
676
683
fn parameter_word ( ) {
684
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
677
685
let expr = Expression :: regex ( "{word}" )
678
686
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
679
687
@@ -685,6 +693,7 @@ mod spec {
685
693
686
694
#[ test]
687
695
fn parameter_string ( ) {
696
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
688
697
let expr = Expression :: regex ( "{string}" )
689
698
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
690
699
@@ -703,6 +712,7 @@ mod spec {
703
712
704
713
#[ test]
705
714
fn parameter_all ( ) {
715
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
706
716
let expr =
707
717
Expression :: regex ( "{}" ) . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
708
718
@@ -712,6 +722,7 @@ mod spec {
712
722
713
723
#[ test]
714
724
fn text ( ) {
725
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
715
726
let expr =
716
727
Expression :: regex ( "a" ) . unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
717
728
@@ -721,9 +732,9 @@ mod spec {
721
732
assert ! ( !expr. is_match( "ab" ) ) ;
722
733
}
723
734
724
- #[ allow( clippy:: non_ascii_literal) ]
725
735
#[ test]
726
736
fn unicode ( ) {
737
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
727
738
let expr = Expression :: regex ( "Привет, Мир(ы)!" )
728
739
. unwrap_or_else ( |e| panic ! ( "failed: {}" , e) ) ;
729
740
@@ -740,6 +751,7 @@ mod spec {
740
751
assert_eq ! ( * not_found, "custom" ) ;
741
752
}
742
753
e @ ( Error :: Parsing ( _) | Error :: Regex ( _) ) => {
754
+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
743
755
panic ! ( "wrong err: {}" , e) ;
744
756
}
745
757
}
0 commit comments