Skip to content

Commit 776a977

Browse files
committed
fix zelf_ to zelf.clone()
1 parent 54a90ed commit 776a977

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stdlib/src/array.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,11 +1258,10 @@ mod array {
12581258

12591259
impl Iterable for PyArray {
12601260
fn iter(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult {
1261-
let zelf_ = zelf.clone();
12621261
Ok(PyArrayIter {
12631262
position: AtomicUsize::new(0),
1264-
array: zelf,
1265-
internal: PyMutex::new(PositionIterInternal::new(zelf_, 0)),
1263+
array: zelf.clone(),
1264+
internal: PyMutex::new(PositionIterInternal::new(zelf.clone(), 0)),
12661265
}
12671266
.into_pyobject(vm))
12681267
}

0 commit comments

Comments
 (0)