hlua icon indicating copy to clipboard operation
hlua copied to clipboard

Panics on executing malformed lua

Open JustMog opened this issue 3 years ago • 0 comments

let mut lua = hlua::Lua::new();
match lua.execute::<()>("return 99k") {
   _ => ()
}

panics: thread 'main' panicked at 'attempted to leave type `&mut hlua::Lua<'_>` uninitialized, which is invalid', [...]\hlua-0.4.1\src\lib.rs:230:19

JustMog avatar Dec 30 '22 03:12 JustMog