upgrade dep version
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user