From 10802bf70fd9371dd17c5f26fd9629a4f824001a Mon Sep 17 00:00:00 2001 From: kyren Date: Thu, 8 Mar 2018 11:14:02 -0500 Subject: [PATCH] Whoops, fix an assert that was improperly changed to an internal error --- src/lua.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" );