@@ -14,7 +14,7 @@ expand_map(Meta, Args, S, E) ->
14
14
validate_kv (Meta , EArgs , Args , E ),
15
15
{{'%{}' , Meta , EArgs }, SE , EE }.
16
16
17
- expand_struct (Meta , Left , {'%{}' , MapMeta , MapArgs }, S , #{context := Context } = E ) ->
17
+ expand_struct (Meta , Left , {'%{}' , MapMeta , MapArgs } = Right , S , #{context := Context } = E ) ->
18
18
CleanMapArgs = delete_struct_key (Meta , MapArgs , E ),
19
19
{[ELeft , ERight ], SE , EE } = elixir_expand :expand_args ([Left , {'%{}' , MapMeta , CleanMapArgs }], S , E ),
20
20
@@ -25,7 +25,7 @@ expand_struct(Meta, Left, {'%{}', MapMeta, MapArgs}, S, #{context := Context} =
25
25
% % The update syntax for structs is deprecated,
26
26
% % so we return only the update syntax downstream.
27
27
% % TODO: Remove me on Elixir v2.0
28
- file_warn (MapMeta , ? key (E , file ), ? MODULE , {deprecated_update , ELeft , ERight }),
28
+ file_warn (MapMeta , ? key (E , file ), ? MODULE , {deprecated_update , ELeft , Right }),
29
29
_ = load_struct_info (Meta , ELeft , Assocs , EE ),
30
30
{{'%' , Meta , [ELeft , ERight ]}, SE , EE };
31
31
0 commit comments