From c0d839d8d2f248f00535f2bcaef9c93d7f93c9ff Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sat, 5 Jul 2025 22:36:47 +0100 Subject: [PATCH] Make `Thread::state` pub (hidden) --- src/thread.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }