File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1258,7 +1258,7 @@ mod array {
12581258
12591259 impl Iterable for PyArray {
12601260 fn iter ( zelf : PyRef < Self > , vm : & VirtualMachine ) -> PyResult {
1261- Ok ( PyArrayIter {
1261+ Ok ( PyArrayIterator {
12621262 position : AtomicUsize :: new ( 0 ) ,
12631263 array : zelf,
12641264 }
@@ -1278,16 +1278,16 @@ mod array {
12781278 #[ pyattr]
12791279 #[ pyclass( name = "arrayiterator" ) ]
12801280 #[ derive( Debug , PyPayload ) ]
1281- pub struct PyArrayIter {
1281+ pub struct PyArrayIterator {
12821282 position : AtomicUsize ,
12831283 array : PyArrayRef ,
12841284 }
12851285
12861286 #[ pyimpl( with( IterNext ) ) ]
1287- impl PyArrayIter { }
1287+ impl PyArrayIterator { }
12881288
1289- impl IterNextIterable for PyArrayIter { }
1290- impl IterNext for PyArrayIter {
1289+ impl IterNextIterable for PyArrayIterator { }
1290+ impl IterNext for PyArrayIterator {
12911291 fn next ( zelf : & Py < Self > , vm : & VirtualMachine ) -> PyResult < PyIterReturn > {
12921292 let pos = zelf. position . fetch_add ( 1 , atomic:: Ordering :: SeqCst ) ;
12931293 let r = if let Some ( item) = zelf. array . read ( ) . get ( pos, vm) {
You can’t perform that action at this time.
0 commit comments