8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c068be4 commit 633fc92Copy full SHA for 633fc92
vm/src/obj/objlist.rs
@@ -486,13 +486,13 @@ impl PyList {
486
}
487
488
#[pymethod(name = "__imul__")]
489
- fn imul(zelf: PyRef<Self>, counter: isize, vm: &VirtualMachine) -> PyResult<Self> {
+ fn imul(zelf: PyRef<Self>, counter: isize, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
490
if counter < 0 || zelf.len() * (counter as usize) < MAX_MEMORY_SIZE {
491
let new_elements = sequence::seq_mul(&zelf.borrow_sequence(), counter)
492
.cloned()
493
.collect();
494
zelf.elements.replace(new_elements);
495
- return Ok(*zelf);
+ return Ok(zelf);
496
497
return Err(vm.new_memory_error("".to_owned()));
498
0 commit comments