Avoid cloning in array methods as much as possible.
This commit is contained in:
@@ -84,7 +84,7 @@ mod map_functions {
|
||||
for (m1, v1) in map1.iter_mut() {
|
||||
if let Some(v2) = map2.get_mut(m1) {
|
||||
let equals = ctx
|
||||
.call_fn_dynamic_raw(OP_EQUALS, true, &mut [v1, v2])
|
||||
.call_fn_raw(OP_EQUALS, true, false, &mut [v1, v2])
|
||||
.map(|v| v.as_bool().unwrap_or(false))?;
|
||||
|
||||
if !equals {
|
||||
|
Reference in New Issue
Block a user