@@ -1479,9 +1479,7 @@ pub fn wp_sqlite_mysql_native_ast_get_children(
14791479 . children
14801480 . iter ( )
14811481 . copied ( )
1482- . map ( |child| {
1483- ast. cached_child_zval ( native_ast_zval, child, & classes)
1484- } )
1482+ . map ( |child| ast. cached_child_zval ( native_ast_zval, child, & classes) )
14851483 . collect ( )
14861484}
14871485
@@ -1499,9 +1497,7 @@ pub fn wp_sqlite_mysql_native_ast_get_child_nodes(
14991497 . iter ( )
15001498 . copied ( )
15011499 . filter ( |child| ast. arena . child_node_matches ( * child, rule_name. as_deref ( ) ) )
1502- . map ( |child| {
1503- ast. cached_child_zval ( native_ast_zval, child, & classes)
1504- } )
1500+ . map ( |child| ast. cached_child_zval ( native_ast_zval, child, & classes) )
15051501 . collect ( )
15061502}
15071503
@@ -1519,9 +1515,7 @@ pub fn wp_sqlite_mysql_native_ast_get_child_tokens(
15191515 . iter ( )
15201516 . copied ( )
15211517 . filter ( |child| ast. arena . child_token_matches ( * child, token_id) )
1522- . map ( |child| {
1523- ast. cached_child_zval ( native_ast_zval, child, & classes)
1524- } )
1518+ . map ( |child| ast. cached_child_zval ( native_ast_zval, child, & classes) )
15251519 . collect ( )
15261520}
15271521
@@ -1538,9 +1532,7 @@ pub fn wp_sqlite_mysql_native_ast_get_descendants(
15381532 . arena
15391533 . descendant_stack ( native_ast_node_index ( node_index) ?) ?;
15401534 while let Some ( child) = stack. pop ( ) {
1541- descendants. push (
1542- ast. cached_child_zval ( native_ast_zval, child, & classes) ?,
1543- ) ;
1535+ descendants. push ( ast. cached_child_zval ( native_ast_zval, child, & classes) ?) ;
15441536 if let NativeAstChild :: Node ( index) = child {
15451537 for child in ast. arena . node ( index) ?. children . iter ( ) . rev ( ) {
15461538 stack. push ( * child) ;
@@ -1564,11 +1556,7 @@ pub fn wp_sqlite_mysql_native_ast_get_descendant_nodes(
15641556 . descendant_stack ( native_ast_node_index ( node_index) ?) ?;
15651557 while let Some ( child) = stack. pop ( ) {
15661558 if ast. arena . child_node_matches ( child, rule_name. as_deref ( ) ) {
1567- descendants. push ( ast. cached_child_zval (
1568- native_ast_zval,
1569- child,
1570- & classes,
1571- ) ?) ;
1559+ descendants. push ( ast. cached_child_zval ( native_ast_zval, child, & classes) ?) ;
15721560 }
15731561 if let NativeAstChild :: Node ( index) = child {
15741562 for child in ast. arena . node ( index) ?. children . iter ( ) . rev ( ) {
@@ -1593,11 +1581,7 @@ pub fn wp_sqlite_mysql_native_ast_get_descendant_tokens(
15931581 . descendant_stack ( native_ast_node_index ( node_index) ?) ?;
15941582 while let Some ( child) = stack. pop ( ) {
15951583 if ast. arena . child_token_matches ( child, token_id) {
1596- descendants. push ( ast. cached_child_zval (
1597- native_ast_zval,
1598- child,
1599- & classes,
1600- ) ?) ;
1584+ descendants. push ( ast. cached_child_zval ( native_ast_zval, child, & classes) ?) ;
16011585 }
16021586 if let NativeAstChild :: Node ( index) = child {
16031587 for child in ast. arena . node ( index) ?. children . iter ( ) . rev ( ) {
0 commit comments