We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a90ed commit 776a977Copy full SHA for 776a977
1 file changed
stdlib/src/array.rs
@@ -1258,11 +1258,10 @@ mod array {
1258
1259
impl Iterable for PyArray {
1260
fn iter(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult {
1261
- let zelf_ = zelf.clone();
1262
Ok(PyArrayIter {
1263
position: AtomicUsize::new(0),
1264
- array: zelf,
1265
- internal: PyMutex::new(PositionIterInternal::new(zelf_, 0)),
+ array: zelf.clone(),
+ internal: PyMutex::new(PositionIterInternal::new(zelf.clone(), 0)),
1266
}
1267
.into_pyobject(vm))
1268
0 commit comments