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

Add an explicit step to a range #15

Merged
merged 2 commits into from
May 29, 2024
Merged

Add an explicit step to a range #15

merged 2 commits into from
May 29, 2024

Conversation

alco
Copy link
Contributor

@alco alco commented May 24, 2024

Without this, the line emits a warning when compiled with Elixir 1.17

Without this, the line emits a warning when compiled with Elixir 1.17
@whatyouhide
Copy link
Contributor

CI is failing. Can you take a look? I’m without laptop til Monday so I can't look til then.

@coveralls
Copy link

coveralls commented May 25, 2024

Pull Request Test Coverage Report for Build 5144500fdf6d662f7f3b1134f63baa8ba4cadd5f-PR-15

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.667%

Totals Coverage Status
Change from base Build 08f57019018b380321d1cbdbd58a5505254bdfb0: 0.0%
Covered Lines: 142
Relevant Lines: 150

💛 - Coveralls

The from..to//step syntax was introduced in Elixir v1.12.0 but hpax
is compatible with Elixir versions going back to 1.7.0.

So to fix the warning introduced in Elixir v1.17 we rewrite the guard
without using a range at all.
@alco
Copy link
Contributor Author

alco commented May 28, 2024

@whatyouhide Updated. Should work on any version of Elixir now.

@whatyouhide whatyouhide merged commit f09f247 into elixir-mint:main May 29, 2024
2 checks passed
@whatyouhide
Copy link
Contributor

Thanks @alco 💟

@kelostrada
Copy link

Can we have this pushed to a new version to silence the warning? :)

@whatyouhide
Copy link
Contributor

whatyouhide commented Jul 1, 2024

Released v1.0.0.

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.

4 participants