File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -94,22 +94,15 @@ where
94
94
type Item = Vec < I :: Item > ;
95
95
96
96
fn next ( & mut self ) -> Option < Self :: Item > {
97
- // If this is the first iteration, return early
98
97
if self . first {
99
98
// In empty edge cases, stop iterating immediately
100
- return if !( self . indices . is_empty ( ) || self . pool . get_next ( ) ) {
101
- None
102
- // Otherwise, yield the initial state
103
- } else {
104
- self . first = false ;
105
- Some ( self . pool . get_at ( & self . indices ) )
106
- } ;
107
- }
108
-
109
- if self . increment_indices ( ) {
99
+ if !( self . indices . is_empty ( ) || self . pool . get_next ( ) ) {
100
+ return None ;
101
+ }
102
+ self . first = false ;
103
+ } else if self . increment_indices ( ) {
110
104
return None ;
111
105
}
112
-
113
106
Some ( self . pool . get_at ( & self . indices ) )
114
107
}
115
108
You can’t perform that action at this time.
0 commit comments