mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
kwarg_names should explicitly be strings so unwrap them directly
This commit is contained in:
@@ -894,7 +894,7 @@ impl VirtualMachine {
|
||||
.to_vec()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.map(|pyobj| pyobj.to_str().unwrap())
|
||||
.map(|pyobj| objstr::get_value(pyobj))
|
||||
.collect();
|
||||
let args = PyFuncArgs::new(args, kwarg_names);
|
||||
let func_ref = self.pop_value();
|
||||
|
||||
Reference in New Issue
Block a user