Skip to content

rename KeepExisting->Preserve variant for leading match arm pipe config option #4305

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

Conversation

calebcartwright
Copy link
Member

@calebcartwright calebcartwright commented Jul 2, 2020

Discussed briefly in #4090 (comment), but basically Preserve feels like a better variant name than KeepExisting.

It's more succinct and direct, and though not terribly important, another minor benefit is that it also happens to be consistent with the equivalent config option values seen in other code formatting tools

Copy link
Contributor

@topecongiro topecongiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me. Thank you!

@topecongiro topecongiro merged commit c3e6be7 into rust-lang:master Jul 3, 2020
@calebcartwright calebcartwright deleted the rename-keepexisting-to-preserve branch July 3, 2020 13:45
@calebcartwright calebcartwright restored the rename-keepexisting-to-preserve branch July 27, 2020 15:15
@calebcartwright calebcartwright deleted the rename-keepexisting-to-preserve branch July 27, 2020 15:17
@karyon
Copy link
Contributor

karyon commented Oct 28, 2021

backported in #4305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants