upgrade dep version

This commit is contained in:
Jay
2020-09-11 12:11:54 +08:00
parent 43b005d487
commit 0b00b55244
6 changed files with 110 additions and 107 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ fn diff_char(ctx: CallContext) -> Result<JsObject> {
let mut idx = 0;
for it in res.iter() {
let mut item = ctx.env.create_object().unwrap();
item.set_named_property(
"count",
ctx.env.create_int64(it.count.try_into().unwrap()).unwrap(),
@@ -40,7 +41,7 @@ fn diff_char(ctx: CallContext) -> Result<JsObject> {
item.set_named_property("added", ctx.env.get_boolean(it.added).unwrap())?;
item.set_named_property("removed", ctx.env.get_boolean(it.removed).unwrap())?;
obj.set_index(idx, item)?;
obj.set_element(idx, item)?;
idx += 1;
}