Skip to content

Commit

Permalink
fix issue with unsafe_lua_modules and rhai
Browse files Browse the repository at this point in the history
  • Loading branch information
makspll committed Jan 2, 2025
1 parent bb3e18d commit 6a0ef28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.linkedProjects": [
"./crates/bevy_api_gen/Cargo.toml",
// "./crates/macro_tests/Cargo.toml",
"Cargo.toml",
],
"rust-analyzer.check.invocationStrategy": "per_workspace",
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ bevy_mod_scripting_functions = { workspace = true }
bevy = { version = "0.15.0", default-features = false }
bevy_mod_scripting_core = { path = "crates/bevy_mod_scripting_core", version = "0.9.0-alpha.1" }
bevy_mod_scripting_common = { path = "crates/bevy_mod_scripting_common", version = "0.9.0-alpha.1" }
bevy_mod_scripting_functions = { path = "crates/bevy_mod_scripting_functions", version = "0.9.0-alpha.1"}
bevy_mod_scripting_functions = { path = "crates/bevy_mod_scripting_functions", version = "0.9.0-alpha.1" }
test_utils = { path = "crates/test_utils" }
mlua = { version = "0.10" }
rhai = { version = "0.20" }
rhai = { version = "1.20.1" }

[dev-dependencies]
bevy = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/bevy_mod_scripting_lua/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn lua_context_load(
_: &mut (),
) -> Result<Lua, ScriptError> {
#[cfg(feature = "unsafe_lua_modules")]
let context = unsafe { Lua::unsafe_new() };
let mut context = unsafe { Lua::unsafe_new() };
#[cfg(not(feature = "unsafe_lua_modules"))]
let mut context = Lua::new();

Expand Down

0 comments on commit 6a0ef28

Please sign in to comment.