mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Replace Lua::ref_thread_exec
This commit is contained in:
+1
-1
@@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user