diff --git a/Cargo.toml b/Cargo.toml index f6ffdea4..16066b34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rhai" -version = "0.18.0" +version = "0.19.0" edition = "2018" authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung"] description = "Embedded scripting for Rust" diff --git a/RELEASES.md b/RELEASES.md index 23973fe7..4b6b9f6d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,6 +1,10 @@ Rhai Release Notes ================== +Version 0.19.0 +============== + + Version 0.18.0 ============== diff --git a/doc/src/context.json b/doc/src/context.json index 16f803db..792990b1 100644 --- a/doc/src/context.json +++ b/doc/src/context.json @@ -1,5 +1,5 @@ { - "version": "0.18.0", + "version": "0.19.0", "repoHome": "https://github.com/jonathandturner/rhai/blob/master", "repoTree": "https://github.com/jonathandturner/rhai/tree/master", "rootUrl": "", diff --git a/src/fn_call.rs b/src/fn_call.rs index c7d9050c..a2377cee 100644 --- a/src/fn_call.rs +++ b/src/fn_call.rs @@ -694,12 +694,12 @@ impl Engine { && _fn_name == KEYWORD_IS_SHARED && idx.is_empty() { - // take call + // is_shared call Ok((target.is_shared().into(), false)) } else { #[cfg(not(feature = "no_object"))] let redirected; - let mut _hash = hash_script; + let mut hash = hash_script; // Check if it is a map method call in OOP style #[cfg(not(feature = "no_object"))] @@ -719,7 +719,7 @@ impl Engine { .for_each(|(i, v)| idx.insert(i, v)); } // Recalculate the hash based on the new function name and new arguments - _hash = if native { + hash = if native { 0 } else { calc_fn_hash(empty(), _fn_name, idx.len(), empty()) @@ -729,7 +729,7 @@ impl Engine { }; if native { - _hash = 0; + hash = 0; } // Attached object pointer in front of the arguments @@ -737,7 +737,7 @@ impl Engine { let args = arg_values.as_mut(); self.exec_fn_call( - state, lib, _fn_name, _hash, args, is_ref, true, pub_only, None, def_val, level, + state, lib, _fn_name, hash, args, is_ref, true, pub_only, None, def_val, level, ) }?;