Skip to content

Resolve Compile Warning and raise Elixir Minimum Requirement to 1.10#71

Open
maennchen wants to merge 2 commits intoggpasqualino:mainfrom
jshmrtn:elixir_compile_warning
Open

Resolve Compile Warning and raise Elixir Minimum Requirement to 1.10#71
maennchen wants to merge 2 commits intoggpasqualino:mainfrom
jshmrtn:elixir_compile_warning

Conversation

@maennchen
Copy link
Copy Markdown

@maennchen maennchen commented May 27, 2021

Resolves the following compile warning:

warning: Code.ensure_compiled?/1 is deprecated. Use Code.ensure_compiled/1 instead (see the proper disclaimers in its docs)
  lib/plug_checkup/options.ex:96: PlugCheckup.Options.validate_json_encoder!/1

Since the function Code.ensure_compiled/1 is only available since Elixir 1.10, I raised the minimum requirement.

If you prefer, we could also detect the Elixir Version and leave the old code in place for older versions.

Based on #72, merge that first.

@maennchen maennchen force-pushed the elixir_compile_warning branch from ed5d95f to 9c61387 Compare May 27, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant