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 11use alloc:: boxed:: Box ;
2- use core:: array;
32use std:: fmt;
43use std:: iter:: FusedIterator ;
54
@@ -113,9 +112,7 @@ where
113112 fn next ( & mut self ) -> Option < Self :: Item > {
114113 if self . first {
115114 // 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 ( ) ) {
119116 return None ;
120117 }
121118 self . first = false ;
@@ -128,9 +125,7 @@ where
128125 fn nth ( & mut self , n : usize ) -> Option < Self :: Item > {
129126 if self . first {
130127 // 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 ( ) ) {
134129 return None ;
135130 }
136131 self . first = false ;
You can’t perform that action at this time.
0 commit comments