Skip to content

Commit 2bf61aa

Browse files
committed
Refactor: delete unnecessary clones
1 parent cdd937c commit 2bf61aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ mod array {
12591259
impl Iterable for PyArray {
12601260
fn iter(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult {
12611261
Ok(PyArrayIter {
1262-
internal: PyMutex::new(PositionIterInternal::new(zelf.clone(), 0)),
1262+
internal: PyMutex::new(PositionIterInternal::new(zelf, 0)),
12631263
}
12641264
.into_pyobject(vm))
12651265
}

0 commit comments

Comments
 (0)