-
Notifications
You must be signed in to change notification settings - Fork 924
Formatting stops working with specific code structure #5348
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
Hi @l3utterfly Thanks for reaching out. If you're on nightly you can try setting The issue is that the nested |
Thank you, this works now |
I'm glad to hear that! Out of curiosity, which approach did you take to resolve your issue? |
I used both. I changed "max_width" to 200 which is about my editor screen length. But I still have some strings which are even longer than that, so had to add the "format_strings" flag as well. |
Incidentally, I needed to set |
Got it! I'm glad that we were able to find a solution for your issue! |
VS Code
rustlang.rust v0.3.1051
The following code does not format (using the format command has no effect).
Removing the
println
line completely seems to make the code format again.Is this a bug within rustfmt?
The text was updated successfully, but these errors were encountered: