diff --git a/src/thread.rs b/src/thread.rs index 20848a6..b524582 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -91,8 +91,10 @@ pub struct AsyncThread { } impl Thread { + /// Returns reference to the Lua state that this thread is associated with. + #[doc(hidden)] #[inline(always)] - fn state(&self) -> *mut ffi::lua_State { + pub fn state(&self) -> *mut ffi::lua_State { self.1 }