@@ -553,8 +553,7 @@ impl char {
553
553
pub fn is_alphabetic ( self ) -> bool {
554
554
match self {
555
555
'a' ..='z' | 'A' ..='Z' => true ,
556
- c if c > '\x7f' => derived_property:: Alphabetic ( c) ,
557
- _ => false ,
556
+ c => c > '\x7f' && derived_property:: Alphabetic ( c) ,
558
557
}
559
558
}
560
559
@@ -585,8 +584,7 @@ impl char {
585
584
pub fn is_lowercase ( self ) -> bool {
586
585
match self {
587
586
'a' ..='z' => true ,
588
- c if c > '\x7f' => derived_property:: Lowercase ( c) ,
589
- _ => false ,
587
+ c => c > '\x7f' && derived_property:: Lowercase ( c) ,
590
588
}
591
589
}
592
590
@@ -617,8 +615,7 @@ impl char {
617
615
pub fn is_uppercase ( self ) -> bool {
618
616
match self {
619
617
'A' ..='Z' => true ,
620
- c if c > '\x7f' => derived_property:: Uppercase ( c) ,
621
- _ => false ,
618
+ c => c > '\x7f' && derived_property:: Uppercase ( c) ,
622
619
}
623
620
}
624
621
@@ -646,8 +643,7 @@ impl char {
646
643
pub fn is_whitespace ( self ) -> bool {
647
644
match self {
648
645
' ' | '\x09' ..='\x0d' => true ,
649
- c if c > '\x7f' => property:: White_Space ( c) ,
650
- _ => false ,
646
+ c => c > '\x7f' && property:: White_Space ( c) ,
651
647
}
652
648
}
653
649
@@ -744,8 +740,7 @@ impl char {
744
740
pub fn is_numeric ( self ) -> bool {
745
741
match self {
746
742
'0' ..='9' => true ,
747
- c if c > '\x7f' => general_category:: N ( c) ,
748
- _ => false ,
743
+ c => c > '\x7f' && general_category:: N ( c) ,
749
744
}
750
745
}
751
746
0 commit comments