Skip to content

Commit 132ff63

Browse files
committed
bump rhai version
1 parent 3a74293 commit 132ff63

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

crates/bevy_mod_scripting_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rhai_impls = ["rhai"]
2626

2727
[dependencies]
2828
mlua = { version = "0.10", default-features = false, optional = true }
29-
rhai = { git = "https://github.com/rhaiscript/rhai", rev = "4ead53eb40f4a18d6f827609041ef1c742f04799", default-features = false, features = [
29+
rhai = { version = "1.21", default-features = false, features = [
3030
"sync",
3131
], optional = true }
3232

crates/languages/bevy_mod_scripting_rhai/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ path = "src/lib.rs"
1717

1818
[dependencies]
1919
bevy = { workspace = true, default-features = false }
20-
rhai = { git = "https://github.com/rhaiscript/rhai", rev = "4ead53eb40f4a18d6f827609041ef1c742f04799" }
20+
rhai = { version = "1.21" }
2121
bevy_mod_scripting_core = { workspace = true, features = ["rhai_impls"] }
2222
bevy_mod_scripting_functions = { workspace = true, features = [
2323
], default-features = false }

crates/languages/bevy_mod_scripting_rhai/src/bindings/script_value.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ impl FunctionWithReceiver {
8989

9090
impl IntoDynamic for FunctionWithReceiver {
9191
fn into_dynamic(self) -> Result<Dynamic, Box<EvalAltResult>> {
92+
#[allow(deprecated)]
9293
Ok(Dynamic::from(FnPtr::from_fn(
9394
self.function.name().to_string(),
9495
move |_ctxt: NativeCallContext, args: &mut [&mut Dynamic]| {
@@ -139,6 +140,7 @@ impl IntoDynamic for ScriptValue {
139140
ScriptValue::Reference(reflect_reference) => {
140141
Dynamic::from(RhaiReflectReference(reflect_reference))
141142
}
143+
#[allow(deprecated)]
142144
ScriptValue::FunctionMut(func) => Dynamic::from(FnPtr::from_fn(
143145
func.name().to_string(),
144146
move |_ctxt: NativeCallContext, args: &mut [&mut Dynamic]| {
@@ -152,6 +154,7 @@ impl IntoDynamic for ScriptValue {
152154
out.into_dynamic()
153155
},
154156
)?),
157+
#[allow(deprecated)]
155158
ScriptValue::Function(func) => Dynamic::from(FnPtr::from_fn(
156159
func.name().to_string(),
157160
move |_ctxt: NativeCallContext, args: &mut [&mut Dynamic]| {

0 commit comments

Comments
 (0)