forked from Rust-related/RustPython
Mark JsonScanner as ThreadSafe
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use crate::obj::objiter;
|
||||
use crate::obj::objstr::PyStringRef;
|
||||
use crate::obj::{objbool, objtype::PyClassRef};
|
||||
use crate::pyobject::{IdProtocol, PyClassImpl, PyObjectRef, PyRef, PyResult, PyValue};
|
||||
use crate::pyobject::{IdProtocol, PyClassImpl, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe};
|
||||
use crate::VirtualMachine;
|
||||
|
||||
use num_bigint::BigInt;
|
||||
@@ -19,6 +19,8 @@ struct JsonScanner {
|
||||
ctx: PyObjectRef,
|
||||
}
|
||||
|
||||
impl ThreadSafe for JsonScanner {}
|
||||
|
||||
impl PyValue for JsonScanner {
|
||||
fn class(vm: &VirtualMachine) -> PyClassRef {
|
||||
vm.class("_json", "make_scanner")
|
||||
|
||||
Reference in New Issue
Block a user