Removing rustfmt from CI checks #183
maximeborges
started this conversation in
General
Replies: 1 comment 3 replies
-
I agree with you and have removed rustfmt from the CI in #184 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rustfmt
is a great tool to format code, but lakes some flexibility when using chained function calls.When configuring peripheral registers, it looks like it would make more sense to have something pairs of
bit().value()
on each line like the following:more than what
rustfmt
would format:We could also argue about using the first
bit().value()
pair on the first line and align all the following ones with only one space, or moving the first one to the next line and using 4 spaces as everywhere else, i.e.:Something that could be done would be to only run
rustfmt
on the CI for the lines that changed, but not throwing errors and letting the reviewer decides if the formatting would make sense to be applied or not. Something in the spirit of rustfmt-format-diff could do the job.Beta Was this translation helpful? Give feedback.
All reactions