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 ec266c4 commit 1aa9dd7Copy full SHA for 1aa9dd7
vm/src/stdlib/ast.rs
@@ -34,7 +34,7 @@ mod _ast {
34
#[pyslot]
35
#[pymethod(magic)]
36
fn init(zelf: PyObjectRef, args: FuncArgs, vm: &VirtualMachine) -> PyResult<()> {
37
- let fields = zelf.clone().get_attr("_fields", vm)?;
+ let fields = zelf.get_attr("_fields", vm)?;
38
let fields: Vec<PyStrRef> = fields.try_to_value(vm)?;
39
let numargs = args.args.len();
40
if numargs > fields.len() {
0 commit comments