From 6664ff9b235984abb457b8d99833d730302c7aaa Mon Sep 17 00:00:00 2001 From: Eric Saxby Date: Thu, 25 Jul 2024 11:29:19 -0700 Subject: [PATCH] Fix deprecated __info__ function call without parens (#33) Elixir 1.17.0 deprecates calling functions without parens. --- lib/memento/table/definition.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/memento/table/definition.ex b/lib/memento/table/definition.ex index ae520b6..c28ee55 100644 --- a/lib/memento/table/definition.ex +++ b/lib/memento/table/definition.ex @@ -192,7 +192,7 @@ defmodule Memento.Table.Definition do @doc "Raise error if a given module is not a valid Memento Table" @spec validate_table!(module) :: :ok | no_return def validate_table!(module) do - Memento.Table = module.__info__.meta + Memento.Table = module.__info__().meta :ok rescue _ ->