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 7c877e2 commit be2a41bCopy full SHA for be2a41b
vm/src/obj/objlist.rs
@@ -475,9 +475,9 @@ impl PyList {
475
let new_elements = sequence::seq_mul(&self.borrow_sequence(), counter)
476
.cloned()
477
.collect();
478
- Ok(vm.ctx.new_list(new_elements))
+ return Ok(vm.ctx.new_list(new_elements));
479
}
480
- Err(vm.new_memory_error("".to_owned()))
+ return Err(vm.new_memory_error("".to_owned()));
481
482
483
#[pymethod(name = "__rmul__")]
@@ -492,9 +492,9 @@ impl PyList {
492
493
494
zelf.elements.replace(new_elements);
495
- Ok(zelf)
+ return Ok(*zelf);
496
497
498
499
500
#[pymethod]
0 commit comments