diff --git a/src/lua.rs b/src/lua.rs index b85db14..3c2f71a 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -727,7 +727,7 @@ impl Lua { // Used 1 stack space, does not call checkstack pub(crate) unsafe fn push_ref(&self, state: *mut ffi::lua_State, lref: &LuaRef) { - rlua_assert!( + assert!( lref.lua.main_state == self.main_state, "Lua instance passed Value created from a different Lua" );