We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
struct Struct { // Hello, this is my // struct where I haven't added // any fields yet. // TODO: add fields }
If you format this code, it becomes:
I expected it to stay the way it is because it already looks perfectly fine and leaving only the first comment indented looks odd.
The text was updated successfully, but these errors were encountered:
Thanks for sharing! Seems to occur with other struct types e.g.
struct Foo( // Bar // Baz // Qux );
so probably a general indentation issue with empty struct defs
For anyone interested in working on this a good starting place to look in the code would probably be here: https://github.com/rust-lang/rustfmt/blob/master/src/items.rs#L1040-L1055
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
If you format this code, it becomes:
I expected it to stay the way it is because it already looks perfectly fine and leaving only the first comment indented looks odd.
The text was updated successfully, but these errors were encountered: