-
Notifications
You must be signed in to change notification settings - Fork 923
Allow not indenting match arms #2937
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
Comments
I strongly agree with this! Nested matches get especially painful; I have instances in my work where, with My personal possibly bad habits about code layout aside, indenting match arm conditions and bodies feels redundant and unnecessarily wasteful to me; they don't both add meaning to rightward drift. I think a |
Allows to disable the indentation of match arms. Related issue: rust-lang#2937
Allows to disable the indentation of match arms. Related issue: rust-lang#2937 Co-authored-by: Yacin Tmimi <[email protected]>
Allows to disable the indentation of match arms. Related issue: rust-lang#2937 Co-authored-by: Yacin Tmimi <[email protected]>
Allows to disable the indentation of match arms. Related issue: rust-lang#2937 Co-authored-by: Yacin Tmimi <[email protected]>
Allows to disable the indentation of match arms. Related issue: rust-lang#2937 Co-authored-by: Yacin Tmimi <[email protected]>
Allows to disable the indentation of match arms. Related issue: rust-lang#2937 Co-authored-by: Yacin Tmimi <[email protected]>
Allows to disable the indentation of match arms. Related issue: #2937 Co-authored-by: Yacin Tmimi <[email protected]>
It's a common style in C++ to see:
I would like a similar style to be possible with rustfmt:
or
This would require two configuration options, probably;
|
before each case, and the non-indentation.Thanks!
The text was updated successfully, but these errors were encountered: