From 725c900219574c6d9055fde8cc4f773a7be14866 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 14 May 2019 08:20:06 -0400 Subject: Make test suite pass on OTP-22 - fix some bad typespec - bump the meck version for good fortune --- src/rebar_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index c920e46..6e5e934 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -972,7 +972,7 @@ get_proxy_auth() -> {ok, ProxyAuth} -> ProxyAuth end. --spec rebar_utils:is_list_of_strings(term()) -> boolean(). +-spec is_list_of_strings(term()) -> boolean(). is_list_of_strings(List) when not is_list(hd(List)) -> false; is_list_of_strings(List) when is_list(hd(List)) -> -- cgit v1.1 From 8653a95ae59e4ceca1968484e1be0c83b4792c9e Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 14 May 2019 08:34:11 -0400 Subject: Remove pre-17 namespaced types workaround --- src/rebar.hrl | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src') diff --git a/src/rebar.hrl b/src/rebar.hrl index f11302d..fedf0d0 100644 --- a/src/rebar.hrl +++ b/src/rebar.hrl @@ -55,23 +55,9 @@ state :: term(), implementation :: rebar_resource | rebar_resource_v2}). --ifdef(namespaced_types). -type rebar_dict() :: dict:dict(). --else. --type rebar_dict() :: dict(). --endif. - --ifdef(namespaced_types). -type rebar_digraph() :: digraph:graph(). --else. --type rebar_digraph() :: digraph(). --endif. - --ifdef(namespaced_types). -type rebar_set() :: sets:set(). --else. --type rebar_set() :: set(). --endif. -ifdef(fun_stacktrace). -define(WITH_STACKTRACE(T, R, S), T:R -> S = erlang:get_stacktrace(),). -- cgit v1.1