Bump version.

This commit is contained in:
Stephen Chung 2020-12-07 22:21:02 +08:00
parent bd52333802
commit aff207d4f4
3 changed files with 8 additions and 7 deletions

View File

@ -6,7 +6,7 @@ members = [
[package]
name = "rhai"
version = "0.19.7"
version = "0.19.8"
edition = "2018"
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"]
description = "Embedded scripting for Rust"

View File

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

View File

@ -172,11 +172,12 @@ mod print_debug_functions {
let len = map.len();
map.iter_mut().enumerate().for_each(|(i, (k, v))| {
result.push_str(&format!("{:?}: ", k));
result.push_str(&print_with_func(FUNC_TO_DEBUG, &ctx, v));
if i < len - 1 {
result.push_str(", ");
}
result.push_str(&format!(
"{:?}: {}{}",
k,
&print_with_func(FUNC_TO_DEBUG, &ctx, v),
if i < len - 1 { ", " } else { "" }
));
});
result.push_str("}");