From 7491beffbf8bcaea36305c8f122ba780c61c361c Mon Sep 17 00:00:00 2001 From: Steffen Deusch Date: Tue, 19 Mar 2024 15:06:02 +0100 Subject: [PATCH] fix map.field notation warning on Elixir 1.17 ``` warning: using map.field notation (without parentheses) to invoke function MyStruct.__struct__() is deprecated, you must add parentheses instead: remote.function() (phoenix_ecto 4.5.1) lib/phoenix_ecto/html.ex:53: Phoenix.HTML.FormData.Ecto.Changeset.to_form/4 ``` --- lib/phoenix_ecto/html.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix_ecto/html.ex b/lib/phoenix_ecto/html.ex index a1fd920..eb7b269 100644 --- a/lib/phoenix_ecto/html.ex +++ b/lib/phoenix_ecto/html.ex @@ -50,7 +50,7 @@ if Code.ensure_loaded?(Phoenix.HTML) do [validate_map!(map, field)] _ -> - [validate_map!(assoc_from_data(source.data, field), field) || module.__struct__] + [validate_map!(assoc_from_data(source.data, field), field) || module.__struct__()] end for changeset <- skip_replaced(changesets) do