Skip to content

Commit 54bd8eb

Browse files
committed
Mark PyMappingProxy as ThreadSafe
1 parent c30561a commit 54bd8eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vm/src/obj/objmappingproxy.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ use super::objstr::PyStringRef;
44
use super::objtype::PyClassRef;
55
use crate::function::OptionalArg;
66
use crate::pyobject::{
7-
ItemProtocol, PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, TryFromObject,
7+
ItemProtocol, PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe,
8+
TryFromObject,
89
};
910
use crate::vm::VirtualMachine;
1011

@@ -13,6 +14,7 @@ use crate::vm::VirtualMachine;
1314
pub struct PyMappingProxy {
1415
mapping: MappingProxyInner,
1516
}
17+
impl ThreadSafe for PyMappingProxy {}
1618

1719
#[derive(Debug)]
1820
enum MappingProxyInner {

0 commit comments

Comments
 (0)