We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2417d3e commit cdd937cCopy full SHA for cdd937c
1 file changed
stdlib/src/array.rs
@@ -1301,12 +1301,12 @@ mod array {
1301
impl IterNextIterable for PyArrayIter {}
1302
impl IterNext for PyArrayIter {
1303
fn next(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyIterReturn> {
1304
- zelf.internal.lock().next(|array, pos| {
1305
- Ok(match array.read().get(pos, vm) {
+ zelf.internal.lock().next(|array, pos| {
+ Ok(match array.read().get(pos, vm) {
1306
Some(item) => PyIterReturn::Return(item?),
1307
None => PyIterReturn::StopIteration(None),
1308
})
1309
- })
+ })
1310
}
1311
1312
0 commit comments