Skip to content

Silence Ruby 2.7 Pattern Matching Warning #58

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

Closed
nachiket87 opened this issue Nov 11, 2022 · 3 comments
Closed

Silence Ruby 2.7 Pattern Matching Warning #58

nachiket87 opened this issue Nov 11, 2022 · 3 comments

Comments

@nachiket87
Copy link

There is a deprecation warning emitted when using Ruby 2.7

ruby/gems/2.7.0/gems/syntax_tree-haml-2.0.0/lib/syntax_tree/haml/format.rb:437: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!

Please could this be silenced in the gem?

@kddnewton
Copy link
Member

Sure yeah, I just removed the internal pattern matching

@nachiket87
Copy link
Author

Hey! Thanks for fixing so fast! I would've loved to make the PR though 😀

@kddnewton
Copy link
Member

kddnewton commented Nov 12, 2022 via email

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

No branches or pull requests

2 participants