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

Don't flatten blocks that have labels #5677

Merged
merged 2 commits into from
Aug 13, 2023

Commits on Jan 26, 2023

  1. include block label length when calculating pat_shape of a match arm

    Previously we alwasy assumed the match arm pattern would have
    `shape.width` - 5 characters of space to work with.
    
    Now if we're formatting a block expression with a label we'll take the
    label into account.
    ytmimi committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    a66df3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    adfdf1c View commit details
    Browse the repository at this point in the history