Skip to content

Commit

Permalink
Get rid of charlist deprecation warnings
Browse files Browse the repository at this point in the history
    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 83 │     {:ok, config} = :file.consult('rebar.config')
    │                                   ~
    │
    └─ deps/telemetry_registry/mix.exs:83:35
    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 89 │     {:ok, [{:application, name, desc}]} = :file.consult('src/telemetry_registry.app.src')
    │                                                         ~
    │
    └─ telemetry_registry/mix.exs:89:57
  • Loading branch information
maennchen committed May 24, 2024
1 parent c82ffd7 commit cee2302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ defmodule TelemetryRegistry.MixProject do
end

defp load_config do
{:ok, config} = :file.consult('rebar.config')
{:ok, config} = :file.consult("rebar.config")

config
end

defp load_app do
{:ok, [{:application, name, desc}]} = :file.consult('src/telemetry_registry.app.src')
{:ok, [{:application, name, desc}]} = :file.consult("src/telemetry_registry.app.src")

{name, desc}
end
Expand Down

0 comments on commit cee2302

Please sign in to comment.