Replace rustfmt::skip with alternate construction #299
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This builder construction allows rustfmt to consider each of the individual expressions instead of forcing it to consider them all at once. There are a couple of instances within
drv/stm32h7-i2c/src/lib.rs
that were not changed since the existing inline-comment style would have been mangled.I went back and forth on the few instances that I left out. I tried moving the comments to their own line, a style that is used elsewhere in the code base, but it made the block look verbose. I'm not familiar enough with the overall coding style to make a recommendation, but I'd be happy to include additional changes in this pull request if it's desired. Here is the diff for reference: