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

In rust-mode, allow typing match branches (=>) in strict mode #789

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

antifuchs
Copy link
Contributor

I'm writing a bunch of rust lately, and have run into a problem where I couldn't insert => in strict mode. Soooo, this pull request adds a test & adjusts the pair logic to correctly work when => is inserted in rust.

Hope this is acceptable - it looks like all rust tests are passing with this change (:

Rust does match branches with the fat arrow (=>). This change ensures
that inserting the '>' after a '=' does not trigger a
rebalancing (which would remove the '>' and be really frustrating)
@Fuco1
Copy link
Owner

Fuco1 commented Sep 13, 2017

Awesome! Even with tests ❤️

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