Skip to content

Commit d5d6603

Browse files
committed
Mark PyZip as ThreadSafe
1 parent 6dfe2f9 commit d5d6603

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/obj/objzip.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::objiter;
22
use super::objtype::PyClassRef;
33
use crate::function::Args;
4-
use crate::pyobject::{PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue};
4+
use crate::pyobject::{PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe};
55
use crate::vm::VirtualMachine;
66

77
pub type PyZipRef = PyRef<PyZip>;
@@ -11,6 +11,7 @@ pub type PyZipRef = PyRef<PyZip>;
1111
pub struct PyZip {
1212
iterators: Vec<PyObjectRef>,
1313
}
14+
impl ThreadSafe for PyZip {}
1415

1516
impl PyValue for PyZip {
1617
fn class(vm: &VirtualMachine) -> PyClassRef {

0 commit comments

Comments
 (0)