Lua state pointer shouldn't be Send
This commit is contained in:
parent
48f51fd444
commit
fbbeb80934
|
@ -135,7 +135,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gmod"
|
||||
version = "12.0.1"
|
||||
version = "13.0.0"
|
||||
dependencies = [
|
||||
"cfg_table 1.0.0",
|
||||
"cstr",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gmod"
|
||||
version = "12.0.1"
|
||||
version = "13.0.0"
|
||||
authors = ["William Venner <william@venner.io>"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
|
|
@ -7,7 +7,7 @@ use crate::userdata::TaggedUserData;
|
|||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct LuaState(pub *mut std::ffi::c_void);
|
||||
unsafe impl Send for LuaState {}
|
||||
|
||||
impl LuaState {
|
||||
pub unsafe fn new() -> Result<Self, LuaError> {
|
||||
let lua = (LUA_SHARED.lual_newstate)();
|
||||
|
|
Loading…
Reference in New Issue