@@ -44,11 +44,11 @@ where
44
44
if let Some ( inner) = & mut self . inner_front {
45
45
if let Some ( item) = inner. next ( ) {
46
46
return Some ( Ok ( item) ) ;
47
- } else {
48
- // This is necessary for the iterator to implement `FusedIterator`
49
- // with only the original iterator being fused.
50
- self . inner_front = None ;
51
47
}
48
+
49
+ // This is necessary for the iterator to implement `FusedIterator`
50
+ // with only the original iterator being fused.
51
+ self . inner_front = None ;
52
52
}
53
53
54
54
match self . iter . next ( ) {
@@ -59,11 +59,11 @@ where
59
59
if let Some ( inner) = & mut self . inner_back {
60
60
if let Some ( item) = inner. next ( ) {
61
61
return Some ( Ok ( item) ) ;
62
- } else {
63
- // This is necessary for the iterator to implement `FusedIterator`
64
- // with only the original iterator being fused.
65
- self . inner_back = None ;
66
62
}
63
+
64
+ // This is necessary for the iterator to implement `FusedIterator`
65
+ // with only the original iterator being fused.
66
+ self . inner_back = None ;
67
67
} else {
68
68
return None ;
69
69
}
@@ -103,11 +103,11 @@ where
103
103
if let Some ( inner) = & mut self . inner_back {
104
104
if let Some ( item) = inner. next_back ( ) {
105
105
return Some ( Ok ( item) ) ;
106
- } else {
107
- // This is necessary for the iterator to implement `FusedIterator`
108
- // with only the original iterator being fused.
109
- self . inner_back = None ;
110
106
}
107
+
108
+ // This is necessary for the iterator to implement `FusedIterator`
109
+ // with only the original iterator being fused.
110
+ self . inner_back = None ;
111
111
}
112
112
113
113
match self . iter . next_back ( ) {
@@ -118,11 +118,11 @@ where
118
118
if let Some ( inner) = & mut self . inner_front {
119
119
if let Some ( item) = inner. next_back ( ) {
120
120
return Some ( Ok ( item) ) ;
121
- } else {
122
- // This is necessary for the iterator to implement `FusedIterator`
123
- // with only the original iterator being fused.
124
- self . inner_front = None ;
125
121
}
122
+
123
+ // This is necessary for the iterator to implement `FusedIterator`
124
+ // with only the original iterator being fused.
125
+ self . inner_front = None ;
126
126
} else {
127
127
return None ;
128
128
}
0 commit comments