Skip to content

Commit 40e7ee1

Browse files
committed
Refactor map code
* `Map` and `InnerMap` are now fully immutable * Internal `Deref` impl has been removed to pave for the future introduction of a map trait * Iterators have been reworked
1 parent 4ca0136 commit 40e7ee1

File tree

3 files changed

+163
-79
lines changed

3 files changed

+163
-79
lines changed

engine/src/ast/function_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl ValueExpr for FunctionCallExpr {
295295
// Extract the values of the map
296296
if let LhsValue::Map(map) = first {
297297
first = LhsValue::Array(
298-
Array::try_from_iter(map.value_type(), map.values_into_iter()).unwrap(),
298+
Array::try_from_iter(map.value_type(), map.into_values()).unwrap(),
299299
);
300300
}
301301
// Retrieve the underlying `Array`

0 commit comments

Comments
 (0)