-
Notifications
You must be signed in to change notification settings - Fork 231
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
Prefer line comments // over block comments /* */ #2738
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm somewhat conflicted here, I think we shouldn't specify style choices in our documentation, but we should consider rustfmt to only accept the style we want. The normalize_comments
option exists, although unfortunately it's unstable. See rust-lang/rustfmt#3350
But we can move forward as is, the change is innocent enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this up! It would be nice is rustfmt could do it for us, but I don't think using a nightly rustfmt is a good idea.
Just had a thought, we could probably use nightly rustfmt this to normalize esp-wifi comments, even if we don't run it in CI. I think we have quite of these from generated code and/or copying C snippets. |
Nothing too fancy, when I read through SPI driver I noticed we used /* */ in some places.