diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2021-05-09 21:39:28 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2021-05-10 17:45:00 +0100 |
commit | 35b75040768571e57f722b9ad4d75b2986cbee6e (patch) | |
tree | 93b26d3645e40c65e1fd1c9fe2c02c54103a4a1e /src/ffi/compat53.rs | |
parent | c9b8eb5418d942ac3b5516a9626f0f029c14b80c (diff) | |
download | mlua-35b75040768571e57f722b9ad4d75b2986cbee6e.zip |
Improve error reporting in module mode.
Attach traceback to a WrappedError.
Fixes #44.
Diffstat (limited to 'src/ffi/compat53.rs')
-rw-r--r-- | src/ffi/compat53.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ffi/compat53.rs b/src/ffi/compat53.rs index 3d8af28..f4a2a01 100644 --- a/src/ffi/compat53.rs +++ b/src/ffi/compat53.rs @@ -680,7 +680,7 @@ pub unsafe fn luaL_traceback( msg: *const c_char, mut level: c_int, ) { - let mut ar: lua_Debug = std::mem::zeroed(); + let mut ar: lua_Debug = mem::zeroed(); let top = lua_gettop(L); let numlevels = compat53_countlevels(L1); let mark = if numlevels > COMPAT53_LEVELS1 + COMPAT53_LEVELS2 { |