Skip to content

Commit

Permalink
Remove deprecated API use
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Aug 15, 2013
1 parent 59ca8af commit 9a66037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ defmodule Relex.Release do
your root directory to be copied over into the release.
"""
defcallback erts_version do
list_to_binary(:erlang.system_info(:version))
String.from_char_list!(:erlang.system_info(:version))
end

@doc """
Expand All @@ -120,7 +120,7 @@ defmodule Relex.Release do
advisable to override it without a good reason.
"""
defcallback code_path do
lc path inlist :code.get_path, do: list_to_binary(path)
lc path inlist :code.get_path, do: String.from_char_list!(path)
end
def code_path(options) do
ebins = List.flatten(lc path inlist lib_dirs(options) do
Expand All @@ -142,7 +142,7 @@ defmodule Relex.Release do
Do not override it unless you have a good reason.
"""
defcallback root_dir do
list_to_binary(:code.root_dir)
String.from_char_list!(:code.root_dir)
end

@doc """
Expand Down

0 comments on commit 9a66037

Please sign in to comment.