Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panics on executing malformed lua #213

Closed
JustMog opened this issue Dec 30, 2022 · 0 comments · Fixed by #216
Closed

Panics on executing malformed lua #213

JustMog opened this issue Dec 30, 2022 · 0 comments · Fixed by #216

Comments

@JustMog
Copy link

JustMog commented Dec 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant