Mark PyStaticMethod as ThreadSafe

This commit is contained in:
Aviv Palivoda
2020-04-24 15:13:36 +03:00
parent 4f7e1ea483
commit f46715ae3c

View File

@@ -1,6 +1,6 @@
use super::objtype::PyClassRef;
use crate::function::OptionalArg;
use crate::pyobject::{PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue};
use crate::pyobject::{PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe};
use crate::slots::SlotDescriptor;
use crate::vm::VirtualMachine;
@@ -10,6 +10,7 @@ pub struct PyStaticMethod {
pub callable: PyObjectRef,
}
pub type PyStaticMethodRef = PyRef<PyStaticMethod>;
impl ThreadSafe for PyStaticMethod {}
impl PyValue for PyStaticMethod {
fn class(vm: &VirtualMachine) -> PyClassRef {