File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -889,19 +889,14 @@ impl Pat {
889
889
return false ;
890
890
}
891
891
892
- match self . node {
893
- PatKind :: Binding ( .., Some ( ref p) ) => p. walk_ ( it) ,
894
- PatKind :: Struct ( _, ref fields, _) => {
895
- fields. iter ( ) . all ( |field| field. pat . walk_ ( it) )
896
- }
897
- PatKind :: TupleStruct ( _, ref s, _) | PatKind :: Tuple ( ref s, _) => {
892
+ match & self . node {
893
+ PatKind :: Binding ( .., Some ( p) ) => p. walk_ ( it) ,
894
+ PatKind :: Struct ( _, fields, _) => fields. iter ( ) . all ( |field| field. pat . walk_ ( it) ) ,
895
+ PatKind :: TupleStruct ( _, s, _) | PatKind :: Tuple ( s, _) | PatKind :: Or ( s) => {
898
896
s. iter ( ) . all ( |p| p. walk_ ( it) )
899
897
}
900
- PatKind :: Or ( ref pats) => pats. iter ( ) . all ( |p| p. walk_ ( it) ) ,
901
- PatKind :: Box ( ref s) | PatKind :: Ref ( ref s, _) => {
902
- s. walk_ ( it)
903
- }
904
- PatKind :: Slice ( ref before, ref slice, ref after) => {
898
+ PatKind :: Box ( s) | PatKind :: Ref ( s, _) => s. walk_ ( it) ,
899
+ PatKind :: Slice ( before, slice, after) => {
905
900
before. iter ( )
906
901
. chain ( slice. iter ( ) )
907
902
. chain ( after. iter ( ) )
You can’t perform that action at this time.
0 commit comments