Fix tests.

This commit is contained in:
Stephen Chung
2020-11-14 17:22:01 +08:00
parent 56fbe39b7b
commit 89254a04c4
4 changed files with 10 additions and 11 deletions

View File

@@ -1718,7 +1718,7 @@ impl Engine {
Expr::Array(x, _) => Ok(Dynamic(Union::Array(Box::new(
x.iter()
.map(|item| self.eval_expr(scope, mods, state, lib, this_ptr, item, level))
.collect::<Result<Vec<_>, _>>()?,
.collect::<Result<_, _>>()?,
)))),
#[cfg(not(feature = "no_object"))]