8000 Restore missing PyRef · RustPython/RustPython@633fc92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 633fc92

Browse files
authored
Restore missing PyRef
1 parent c068be4 commit 633fc92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/obj/objlist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,13 @@ impl PyList {
486486
}
487487

488488
#[pymethod(name = "__imul__")]
489-
fn imul(zelf: PyRef<Self>, counter: isize, vm: &VirtualMachine) -> PyResult<Self> {
489+
fn imul(zelf: PyRef<Self>, counter: isize, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
490490
if counter < 0 || zelf.len() * (counter as usize) < MAX_MEMORY_SIZE {
491491
let new_elements = sequence::seq_mul(&zelf.borrow_sequence(), counter)
492492
.cloned()
493493
.collect();
494494
zelf.elements.replace(new_elements);
495-
return Ok(*zelf);
495+
return Ok(zelf);
496496
}
497497
return Err(vm.new_memory_error("".to_owned()));
498498
}

0 commit comments

Comments
 (0)
0