@@ -1017,7 +1017,7 @@ impl<'a> Children<'a> for HM<'a> {
10171017 where C : Context + PrePost < Self > , Self : Sized
10181018 {
10191019 if let Some ( ref hm) = self . contents . get ( ) {
1020- for ( k, v) in hm. iter ( ) . nth ( index / 2 ) {
1020+ if let Some ( ( k, v) ) = hm. iter ( ) . nth ( index / 2 ) {
10211021 [ k, v] [ index % 2 ] . descend_into_self ( context) ;
10221022 }
10231023 }
@@ -1032,7 +1032,7 @@ impl<'a> Children<'a> for VD<'a> {
10321032 where C : Context + PrePost < Self > , Self : Sized
10331033 {
10341034 if let Some ( ref vd) = self . contents . get ( ) {
1035- for r in vd. iter ( ) . nth ( index) {
1035+ if let Some ( r ) = vd. iter ( ) . nth ( index) {
10361036 r. descend_into_self ( context) ;
10371037 }
10381038 }
@@ -1047,7 +1047,7 @@ impl<'a> Children<'a> for VM<'a> {
10471047 where C : Context + PrePost < VM < ' a > >
10481048 {
10491049 if let Some ( ref vd) = self . contents . get ( ) {
1050- for ( _idx, r) in vd. iter ( ) . nth ( index) {
1050+ if let Some ( ( _idx, r) ) = vd. iter ( ) . nth ( index) {
10511051 r. descend_into_self ( context) ;
10521052 }
10531053 }
@@ -1062,7 +1062,7 @@ impl<'a> Children<'a> for LL<'a> {
10621062 where C : Context + PrePost < LL < ' a > >
10631063 {
10641064 if let Some ( ref ll) = self . contents . get ( ) {
1065- for r in ll. iter ( ) . nth ( index) {
1065+ if let Some ( r ) = ll. iter ( ) . nth ( index) {
10661066 r. descend_into_self ( context) ;
10671067 }
10681068 }
@@ -1077,7 +1077,7 @@ impl<'a> Children<'a> for BH<'a> {
10771077 where C : Context + PrePost < BH < ' a > >
10781078 {
10791079 if let Some ( ref bh) = self . contents . get ( ) {
1080- for r in bh. iter ( ) . nth ( index) {
1080+ if let Some ( r ) = bh. iter ( ) . nth ( index) {
10811081 r. descend_into_self ( context) ;
10821082 }
10831083 }
@@ -1092,7 +1092,7 @@ impl<'a> Children<'a> for BTM<'a> {
10921092 where C : Context + PrePost < BTM < ' a > >
10931093 {
10941094 if let Some ( ref bh) = self . contents . get ( ) {
1095- for ( k, v) in bh. iter ( ) . nth ( index / 2 ) {
1095+ if let Some ( ( k, v) ) = bh. iter ( ) . nth ( index / 2 ) {
10961096 [ k, v] [ index % 2 ] . descend_into_self ( context) ;
10971097 }
10981098 }
@@ -1107,7 +1107,7 @@ impl<'a> Children<'a> for BTS<'a> {
11071107 where C : Context + PrePost < BTS < ' a > >
11081108 {
11091109 if let Some ( ref bh) = self . contents . get ( ) {
1110- for r in bh. iter ( ) . nth ( index) {
1110+ if let Some ( r ) = bh. iter ( ) . nth ( index) {
11111111 r. descend_into_self ( context) ;
11121112 }
11131113 }
0 commit comments