diff options
author | kyren <kerriganw@gmail.com> | 2017-12-03 23:25:03 -0500 |
---|---|---|
committer | kyren <kerriganw@gmail.com> | 2017-12-03 23:25:03 -0500 |
commit | e80e7d45405fec6a1ce57dfa567199f7f592bbb6 (patch) | |
tree | b82574371e52e90931c032290277e2f005f70079 | |
parent | 67e8907f196cf00d1908747e975facbad25c3f7b (diff) | |
download | mlua-e80e7d45405fec6a1ce57dfa567199f7f592bbb6.zip |
missing push_string calls in util
-rw-r--r-- | src/util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs index 6c18218..1f49378 100644 --- a/src/util.rs +++ b/src/util.rs @@ -588,11 +588,11 @@ unsafe fn get_panic_metatable(state: *mut ffi::lua_State) -> c_int { ); ffi::lua_pushvalue(state, -2); - push_string(state, "__gc"); + ffi::lua_pushstring(state, cstr!("__gc")); ffi::lua_pushcfunction(state, userdata_destructor::<WrappedPanic>); ffi::lua_settable(state, -3); - push_string(state, "__metatable"); + ffi::lua_pushstring(state, cstr!("__metatable")); ffi::lua_pushboolean(state, 0); ffi::lua_settable(state, -3); |