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 crystal v1.11 warnings for use of splat in macros. #155

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

abrightwell
Copy link
Member

@abrightwell abrightwell commented Jan 31, 2024

In crystal v1.11.0 the use of the splat (*) operator in macro expressions was deprecated[1,2,3]. Instead it is recommended to use .splat instead. Currently, we are not building against crystal v1.11, however, we do want to move to it in near future. So here we're making these changes to get ahead of it.

Warning: Deprecated use of splat operator. Use `#splat` instead

[1] https://crystal-lang.org/2024/01/08/1.11.0-released/
[2] https://github.com/crystal-lang/crystal/releases/tag/1.11.0
[3] crystal-lang/crystal#13939

In `crystal v1.11.0` the use of the `splat (*)` operator in macro expressions
was deprecated[1,2,3]. Instead it is recommended to use `.splat` instead.
Currently, we are not building against `crystal v1.11`, however, we do want to
move to it in near future. So here we're making these changes to get ahead of
it.

[1] https://crystal-lang.org/2024/01/08/1.11.0-released/
[2] https://github.com/crystal-lang/crystal/releases/tag/1.11.0
[3] crystal-lang/crystal#13939
@abrightwell abrightwell requested a review from a team as a code owner January 31, 2024 15:02
@abrightwell abrightwell merged commit 272d9c6 into main Jan 31, 2024
2 checks passed
@abrightwell abrightwell deleted the abrightwell/fix-splat-warnings branch January 31, 2024 15:16
@abrightwell
Copy link
Member Author

Thanks!

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