@@ -931,29 +931,19 @@ fn convert_path(
931
931
None => return ,
932
932
} ;
933
933
934
- match raw_paint_order. order {
935
- [ PaintOrderKind :: Markers , _, _] => {
936
- if let Some ( markers_node) = marker {
937
- parent. children . push ( Node :: Group ( Box :: new ( markers_node) ) ) ;
938
- }
939
-
934
+ match ( raw_paint_order. order , marker) {
935
+ ( [ PaintOrderKind :: Markers , _, _] , Some ( markers_node) ) => {
936
+ parent. children . push ( Node :: Group ( Box :: new ( markers_node) ) ) ;
940
937
parent. children . push ( Node :: Path ( Box :: new ( path. clone ( ) ) ) ) ;
941
938
}
942
- [ first, PaintOrderKind :: Markers , last] => {
939
+ ( [ first, PaintOrderKind :: Markers , last] , Some ( markers_node ) ) => {
943
940
append_single_paint_path ( first, & path, parent) ;
944
-
945
- if let Some ( markers_node) = marker {
946
- parent. children . push ( Node :: Group ( Box :: new ( markers_node) ) ) ;
947
- }
948
-
941
+ parent. children . push ( Node :: Group ( Box :: new ( markers_node) ) ) ;
949
942
append_single_paint_path ( last, & path, parent) ;
950
943
}
951
- [ _, _, PaintOrderKind :: Markers ] => {
944
+ ( [ _, _, PaintOrderKind :: Markers ] , Some ( markers_node ) ) => {
952
945
parent. children . push ( Node :: Path ( Box :: new ( path. clone ( ) ) ) ) ;
953
-
954
- if let Some ( markers_node) = marker {
955
- parent. children . push ( Node :: Group ( Box :: new ( markers_node) ) ) ;
956
- }
946
+ parent. children . push ( Node :: Group ( Box :: new ( markers_node) ) ) ;
957
947
}
958
948
_ => parent. children . push ( Node :: Path ( Box :: new ( path. clone ( ) ) ) ) ,
959
949
}
0 commit comments