diff --git a/Cargo.lock b/Cargo.lock index b560524..493f312 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -135,7 +135,7 @@ dependencies = [ [[package]] name = "gmod" -version = "12.0.1" +version = "13.0.0" dependencies = [ "cfg_table 1.0.0", "cstr", diff --git a/gmod/Cargo.toml b/gmod/Cargo.toml index 4f890f6..c331ac4 100644 --- a/gmod/Cargo.toml +++ b/gmod/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gmod" -version = "12.0.1" +version = "13.0.0" authors = ["William Venner "] edition = "2021" license = "MIT" diff --git a/gmod/src/lua/lua_state.rs b/gmod/src/lua/lua_state.rs index 02d6309..fa82160 100644 --- a/gmod/src/lua/lua_state.rs +++ b/gmod/src/lua/lua_state.rs @@ -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 { let lua = (LUA_SHARED.lual_newstate)();