Skip to content

Strange Line Break in variable declaration #5754

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

Closed
REN-aissance opened this issue Apr 15, 2023 · 1 comment
Closed

Strange Line Break in variable declaration #5754

REN-aissance opened this issue Apr 15, 2023 · 1 comment

Comments

@REN-aissance
Copy link

Hello, I am using rustfmt and noticed this bizarre newline behavior. Is this expected behavior? Is it possible for me to override this in settings? I would expect this to instead break at "expects" not immediately after the equals sign

image

@calebcartwright
Copy link
Member

Yes this is expected, and yes it is correct (as per style guide prescriptions). No there's currently no option that will allow you to get the formatting you prefer, though one could eventually come to fruition (refs #4886)

@calebcartwright calebcartwright closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants