diff --git a/lib/dialyxir/warnings/invalid_contract.ex b/lib/dialyxir/warnings/invalid_contract.ex index c16e68c..2f86a51 100644 --- a/lib/dialyxir/warnings/invalid_contract.ex +++ b/lib/dialyxir/warnings/invalid_contract.ex @@ -31,7 +31,7 @@ defmodule Dialyxir.Warnings.InvalidContract do @impl Dialyxir.Warning @spec format_long([String.t()]) :: String.t() - def format_long([module, function, arity, signature]) do + def format_long([module, function, arity, _args, signature | _]) do pretty_module = Erlex.pretty_print(module) pretty_signature = Erlex.pretty_print_contract(signature)