tomaka / hlua

Rust library to interface with Lua
MIT License
507 stars 48 forks source link

Panics on executing malformed lua #213

Closed JustMog closed 5 months ago

JustMog commented 1 year ago
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