Skip to content

Commit 6a0ef28

Browse files
committed
fix issue with unsafe_lua_modules and rhai
1 parent bb3e18d commit 6a0ef28

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"rust-analyzer.rustc.source": "discover",
1212
"rust-analyzer.linkedProjects": [
1313
"./crates/bevy_api_gen/Cargo.toml",
14-
// "./crates/macro_tests/Cargo.toml",
1514
"Cargo.toml",
1615
],
1716
"rust-analyzer.check.invocationStrategy": "per_workspace",

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ bevy_mod_scripting_functions = { workspace = true }
6868
bevy = { version = "0.15.0", default-features = false }
6969
bevy_mod_scripting_core = { path = "crates/bevy_mod_scripting_core", version = "0.9.0-alpha.1" }
7070
bevy_mod_scripting_common = { path = "crates/bevy_mod_scripting_common", version = "0.9.0-alpha.1" }
71-
bevy_mod_scripting_functions = { path = "crates/bevy_mod_scripting_functions", version = "0.9.0-alpha.1"}
71+
bevy_mod_scripting_functions = { path = "crates/bevy_mod_scripting_functions", version = "0.9.0-alpha.1" }
7272
test_utils = { path = "crates/test_utils" }
7373
mlua = { version = "0.10" }
74-
rhai = { version = "0.20" }
74+
rhai = { version = "1.20.1" }
7575

7676
[dev-dependencies]
7777
bevy = { workspace = true, default-features = true }

crates/languages/bevy_mod_scripting_lua/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub fn lua_context_load(
125125
_: &mut (),
126126
) -> Result<Lua, ScriptError> {
127127
#[cfg(feature = "unsafe_lua_modules")]
128-
let context = unsafe { Lua::unsafe_new() };
128+
let mut context = unsafe { Lua::unsafe_new() };
129129
#[cfg(not(feature = "unsafe_lua_modules"))]
130130
let mut context = Lua::new();
131131

0 commit comments

Comments
 (0)