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
Use explicit u8 when assigning a byte slice #334
Conversation
It's maybe useful as a formatting convention but it shouldn't add too much:
(https://doc.rust-lang.org/stable/reference/tokens.html#number-literals) |
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.
ACK 24d6f62
Agreed that it's clearer this way and I wish there was a way to lint for it.
Was there a rationale for not dealing with the following occurrences?
Asking because I am currently rebasing #327 and when trying to re-apply my changes on top of this, I noticed that a simple search and replace hit more lines than I expected. |
I probably should have documented the command I used to get what I did. I definitely intended to replace all. If you don't want to make another PR I can. Thanks for the catch. |
I guess we could write a shell script that runs this |
Is there a way to tell the compiler to not allow
[0; 64]
and require that either the type is explicitly given to the variable, or that each member uses explicit0u8
notation?I noticed the usage was a mix of explicit and implicit, so I changed all to explicit.