Skip to content

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

Merged
topecongiro merged 1 commit into
rust-lang:masterfrom
calebcartwright:rename-keepexisting-to-preserve
Jul 3, 2020
Merged

rename KeepExisting->Preserve variant for leading match arm pipe config option#4305
topecongiro merged 1 commit into
rust-lang:masterfrom
calebcartwright:rename-keepexisting-to-preserve

Conversation

@calebcartwright

@calebcartwright calebcartwright commented Jul 2, 2020

Copy link
Copy Markdown
Member

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

@topecongiro topecongiro left a comment

Copy link
Copy Markdown
Contributor

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

karyon commented Oct 28, 2021

Copy link
Copy Markdown
Contributor

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