Skip to content

Add let_chain_style configuration option #5983

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ytmimi
Copy link
Contributor

@ytmimi ytmimi commented Dec 17, 2023

This is a follow up to #5910, which added support for let-chains.

Now users have some control over how let-chains are formatted. The default value of LegibleBindings follows the style guide prescription defined in r-l/rust#110568. The Tall variant provides users an option to format all chain items on a single line if they fit.

Happy to bike shed on the variant names, but I wanted to get the ball rolling on the new configuration.

r? @calebcartwright

Now users have some control over how `let-chains` are formatted. The
default value of `LegibleBindings` follows the style guide prescription
defined in `r-l/rust 110568`. The `Tall` variant provides users an
option to format all chain items on a single line if they fit.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants