Skip to content

Commit c0d839d

Browse files
committed
Make Thread::state pub (hidden)
1 parent 80471c6 commit c0d839d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/thread.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ pub struct AsyncThread<R> {
9191
}
9292

9393
impl Thread {
94+
/// Returns reference to the Lua state that this thread is associated with.
95+
#[doc(hidden)]
9496
#[inline(always)]
95-
fn state(&self) -> *mut ffi::lua_State {
97+
pub fn state(&self) -> *mut ffi::lua_State {
9698
self.1
9799
}
98100

0 commit comments

Comments
 (0)