We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e40c05 commit 99bceb6Copy full SHA for 99bceb6
vm/src/builtins/staticmethod.rs
@@ -179,7 +179,8 @@ impl Callable for PyStaticMethod {
179
type Args = FuncArgs;
180
#[inline]
181
fn call(zelf: &crate::Py<Self>, args: FuncArgs, vm: &VirtualMachine) -> PyResult {
182
- vm.invoke(&zelf.callable.lock().clone(), args)
+ let callable = zelf.callable.lock().clone();
183
+ vm.invoke(&callable, args)
184
}
185
186
0 commit comments