Replace Lua::ref_thread_exec

This commit is contained in:
Alex Orlenko
2022-10-17 00:39:55 +01:00
parent 0354703dbf
commit fcd162f3eb
5 changed files with 27 additions and 36 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ impl<'lua> String<'lua> {
#[inline]
pub fn to_pointer(&self) -> *const c_void {
let lua = self.0.lua;
unsafe { lua.ref_thread_exec(|refthr| ffi::lua_topointer(refthr, self.0.index)) }
unsafe { ffi::lua_topointer(lua.ref_thread(), self.0.index) }
}
}