File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ fn iterating(location: Location) {
7777 assert_eq ! ( entry. path( ) . as_ref( ) , f) ;
7878 }
7979
80- for j in i + 1 ..count {
80+ for file in & files [ i + 1 ..count] {
8181 let entry = syscall ! ( client. read_dir_next( ) ) . entry . unwrap ( ) ;
82- assert_eq ! ( entry. path( ) . as_ref( ) , & files [ j ] ) ;
82+ assert_eq ! ( entry. path( ) . as_ref( ) , file ) ;
8383 }
8484 assert ! ( syscall!( client. read_dir_next( ) ) . entry. is_none( ) ) ;
8585 }
@@ -93,9 +93,9 @@ fn iterating(location: Location) {
9393 assert_eq ! ( data, f. as_bytes( ) ) ;
9494 }
9595
96- for j in i + 1 ..count {
96+ for file in & files [ i + 1 ..count] {
9797 let data = syscall ! ( client. read_dir_files_next( ) ) . data . unwrap ( ) ;
98- assert_eq ! ( data, files [ j ] . as_bytes( ) ) ;
98+ assert_eq ! ( data, file . as_bytes( ) ) ;
9999 }
100100 assert ! ( syscall!( client. read_dir_files_next( ) ) . data. is_none( ) ) ;
101101 }
You can’t perform that action at this time.
0 commit comments