@@ -1017,7 +1017,7 @@ impl<'a> Children<'a> for HM<'a> {
1017
1017
where C : Context + PrePost < Self > , Self : Sized
1018
1018
{
1019
1019
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 ) {
1021
1021
[ k, v] [ index % 2 ] . descend_into_self ( context) ;
1022
1022
}
1023
1023
}
@@ -1032,7 +1032,7 @@ impl<'a> Children<'a> for VD<'a> {
1032
1032
where C : Context + PrePost < Self > , Self : Sized
1033
1033
{
1034
1034
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) {
1036
1036
r. descend_into_self ( context) ;
1037
1037
}
1038
1038
}
@@ -1047,7 +1047,7 @@ impl<'a> Children<'a> for VM<'a> {
1047
1047
where C : Context + PrePost < VM < ' a > >
1048
1048
{
1049
1049
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) {
1051
1051
r. descend_into_self ( context) ;
1052
1052
}
1053
1053
}
@@ -1062,7 +1062,7 @@ impl<'a> Children<'a> for LL<'a> {
1062
1062
where C : Context + PrePost < LL < ' a > >
1063
1063
{
1064
1064
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) {
1066
1066
r. descend_into_self ( context) ;
1067
1067
}
1068
1068
}
@@ -1077,7 +1077,7 @@ impl<'a> Children<'a> for BH<'a> {
1077
1077
where C : Context + PrePost < BH < ' a > >
1078
1078
{
1079
1079
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) {
1081
1081
r. descend_into_self ( context) ;
1082
1082
}
1083
1083
}
@@ -1092,7 +1092,7 @@ impl<'a> Children<'a> for BTM<'a> {
1092
1092
where C : Context + PrePost < BTM < ' a > >
1093
1093
{
1094
1094
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 ) {
1096
1096
[ k, v] [ index % 2 ] . descend_into_self ( context) ;
1097
1097
}
1098
1098
}
@@ -1107,7 +1107,7 @@ impl<'a> Children<'a> for BTS<'a> {
1107
1107
where C : Context + PrePost < BTS < ' a > >
1108
1108
{
1109
1109
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) {
1111
1111
r. descend_into_self ( context) ;
1112
1112
}
1113
1113
}
0 commit comments