-
Notifications
You must be signed in to change notification settings - Fork 1.7k
block-break-value #2430
Copy link
Copy link
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
Activity
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
We have:
It would be nice to extend this to other blocks:
As opposed to:
This avoids a whole level of indentation and an unnecessary pair of
{}.Note that
while letandwhilewouldn't be changed because those can't return values.(Note that IDEs/rustfmt are unable to cope with:
Instead, they rewrite it to:
)