summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose M Perez <jose.m.perez.ramos+git@gmail.com>2019-04-02 11:06:03 +0200
committerJose M Perez <jose.m.perez.ramos+git@gmail.com>2019-04-02 11:06:03 +0200
commit1eff250fe63e04c6bc991f9524e498a10c183b4f (patch)
tree00bf1565e0d8335632711ae0375fb527bf89dc14
parentff65877f84e09edf47a699c4556da8802d3665a7 (diff)
Use maps syntax for OTP 17 in deps cmd
-rw-r--r--src/rebar_prv_deps.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_deps.erl b/src/rebar_prv_deps.erl
index 5443ab5..d00a1c8 100644
--- a/src/rebar_prv_deps.erl
+++ b/src/rebar_prv_deps.erl
@@ -79,11 +79,11 @@ locked_deps_map(State, Profile) ->
case rebar_app_info:is_lock(Dep) of
true ->
DepName = rebar_app_info:name(Dep),
- DepsIn#{rebar_utils:to_binary(DepName) => Dep};
+ maps:put(rebar_utils:to_binary(DepName), Dep, DepsIn);
_ ->
DepsIn
end
- end, #{}, ParsedDeps).
+ end, maps:new(), ParsedDeps).
display_dep(State, Dep, LockedDeps) ->