File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
use alloc:: boxed:: Box ;
2
- use core:: array;
3
2
use std:: fmt;
4
3
use std:: iter:: FusedIterator ;
5
4
@@ -113,9 +112,7 @@ where
113
112
fn next ( & mut self ) -> Option < Self :: Item > {
114
113
if self . first {
115
114
// In empty edge cases, stop iterating immediately
116
- if !( core:: borrow:: Borrow :: < [ usize ] > :: borrow ( & self . indices ) . is_empty ( )
117
- || self . pool . get_next ( ) )
118
- {
115
+ if !( ( & self . indices ) . borrow ( ) . is_empty ( ) || self . pool . get_next ( ) ) {
119
116
return None ;
120
117
}
121
118
self . first = false ;
@@ -128,9 +125,7 @@ where
128
125
fn nth ( & mut self , n : usize ) -> Option < Self :: Item > {
129
126
if self . first {
130
127
// In empty edge cases, stop iterating immediately
131
- if !( core:: borrow:: Borrow :: < [ usize ] > :: borrow ( & self . indices ) . is_empty ( )
132
- || self . pool . get_next ( ) )
133
- {
128
+ if !( ( & self . indices ) . borrow ( ) . is_empty ( ) || self . pool . get_next ( ) ) {
134
129
return None ;
135
130
}
136
131
self . first = false ;
You can’t perform that action at this time.
0 commit comments