Switch to `import Config`
https://hexdocs.pm/elixir/master/Config.html#module-migrating-from-use-mix-config
Pleroma is currently using use Mix.Config
which is deprecated in favor of import Config
.
At first I assumed this was just overlooked, but while working on an MR I noticed some conditional code:
test/mix/tasks/pleroma/config_test.exs:191
:
header =
if Code.ensure_loaded?(Config.Reader) do
"import Config"
else
"use Mix.Config"
end
So I'm confused. Is there a reason not to switch over?