Skip to content

Commit

Permalink
Change @struct to __MODULE__
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Oct 1, 2020
1 parent add24fc commit c4a5ae8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cldr/currency.ex
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ defmodule Cldr.Currency do
with {:ok, currency_code} <- Cldr.validate_currency(currency),
{:ok, currency_code} <- validate_new_currency(currency_code),
{:ok, options} <- validate_options(currency_code, options) do
currency = struct(@struct, [{:code, currency_code} | options])
currency = struct(__MODULE__, [{:code, currency_code} | options])
store_currency(currency)
end
end
Expand Down
3 changes: 2 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ defmodule Cldr.Currencies.MixProject do

defp deps do
[
{:ex_cldr, "~> 2.14"},
{:ex_cldr, path: "../cldr"},
# {:ex_cldr, "~> 2.18"},
{:jason, "~> 1.0", optional: true},
{:ex_doc, "~> 0.18", only: [:dev, :release, :test], optional: true},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false}
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%{
"cldr_utils": {:hex, :cldr_utils, "2.10.0", "d6daaa0b21f28c8fb38450a8f82e0c2c7c17782a1479bd276829c2d87c01321a", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "10d1dc2c0918245271a4e90b94247eb02a296e2bf98069c3886d3be1e770495b"},
"cldr_utils": {:hex, :cldr_utils, "2.13.1", "e066dfb426b638751f1b6f39dd3398f10d5f16e049317bf435193ce8f77e5b2a", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "19092aa029e518af24463af1798d6efac1b85126501f32b3b5a8de0fcd2d2249"},
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
"dialyxir": {:hex, :dialyxir, "1.0.0", "6a1fa629f7881a9f5aaf3a78f094b2a51a0357c843871b8bc98824e7342d00a5", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "aeb06588145fac14ca08d8061a142d52753dbc2cf7f0d00fc1013f53f8654654"},
"earmark": {:hex, :earmark, "1.4.9", "837e4c1c5302b3135e9955f2bbf52c6c52e950c383983942b68b03909356c0d9", [:mix], [{:earmark_parser, ">= 1.4.9", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "0d72df7d13a3dc8422882bed5263fdec5a773f56f7baeb02379361cb9e5b0d8e"},
Expand Down

0 comments on commit c4a5ae8

Please sign in to comment.