Bump version.

This commit is contained in:
Stephen Chung 2020-08-05 17:55:36 +08:00
parent f791c64f96
commit 5ea08d2b50
4 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rhai" name = "rhai"
version = "0.18.0" version = "0.19.0"
edition = "2018" edition = "2018"
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung"] authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung"]
description = "Embedded scripting for Rust" description = "Embedded scripting for Rust"

View File

@ -1,6 +1,10 @@
Rhai Release Notes Rhai Release Notes
================== ==================
Version 0.19.0
==============
Version 0.18.0 Version 0.18.0
============== ==============

View File

@ -1,5 +1,5 @@
{ {
"version": "0.18.0", "version": "0.19.0",
"repoHome": "https://github.com/jonathandturner/rhai/blob/master", "repoHome": "https://github.com/jonathandturner/rhai/blob/master",
"repoTree": "https://github.com/jonathandturner/rhai/tree/master", "repoTree": "https://github.com/jonathandturner/rhai/tree/master",
"rootUrl": "", "rootUrl": "",

View File

@ -694,12 +694,12 @@ impl Engine {
&& _fn_name == KEYWORD_IS_SHARED && _fn_name == KEYWORD_IS_SHARED
&& idx.is_empty() && idx.is_empty()
{ {
// take call // is_shared call
Ok((target.is_shared().into(), false)) Ok((target.is_shared().into(), false))
} else { } else {
#[cfg(not(feature = "no_object"))] #[cfg(not(feature = "no_object"))]
let redirected; let redirected;
let mut _hash = hash_script; let mut hash = hash_script;
// Check if it is a map method call in OOP style // Check if it is a map method call in OOP style
#[cfg(not(feature = "no_object"))] #[cfg(not(feature = "no_object"))]
@ -719,7 +719,7 @@ impl Engine {
.for_each(|(i, v)| idx.insert(i, v)); .for_each(|(i, v)| idx.insert(i, v));
} }
// Recalculate the hash based on the new function name and new arguments // Recalculate the hash based on the new function name and new arguments
_hash = if native { hash = if native {
0 0
} else { } else {
calc_fn_hash(empty(), _fn_name, idx.len(), empty()) calc_fn_hash(empty(), _fn_name, idx.len(), empty())
@ -729,7 +729,7 @@ impl Engine {
}; };
if native { if native {
_hash = 0; hash = 0;
} }
// Attached object pointer in front of the arguments // Attached object pointer in front of the arguments
@ -737,7 +737,7 @@ impl Engine {
let args = arg_values.as_mut(); let args = arg_values.as_mut();
self.exec_fn_call( 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,
) )
}?; }?;