Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings for default step #35

Merged
merged 3 commits into from
Jun 9, 2024
Merged

Fix warnings for default step #35

merged 3 commits into from
Jun 9, 2024

Conversation

wkirschbaum
Copy link
Contributor

@wkirschbaum wkirschbaum commented Jun 4, 2024

This fixes the following warning

warning: 5..1 has a default step of -1, please write 5..1//-1 instead
  lib/remote_ip/parsers/forwarded.ex:134: RemoteIp.Parsers.Forwarded.port/0

If the step syntax breaks for 1.10 and/or 1.11 it might be worth it to bump the minimum version of Elixir to 1.12 based on this compatibility doc: https://hexdocs.pm/elixir/1.16.3/compatibility-and-deprecations.html

@ajvondrak
Copy link
Owner

Change makes sense to me. Guess this repo's CI config is out of date enough that we're getting some build failures, but I'll get to work fixing those on main, since it's not related to the actual change here. The package is long overdue for a version bump to line it up with supported Elixir versions anyhow. 😅

Thanks for the fix!

@ajvondrak ajvondrak merged commit f21622f into ajvondrak:main Jun 9, 2024
5 of 10 checks passed
@ajvondrak
Copy link
Owner

Just published this fix in https://hex.pm/packages/remote_ip/1.2.0 Let me know if there are any problems!

@wkirschbaum
Copy link
Contributor Author

Thank you, will try it out today.

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.

2 participants