-
Notifications
You must be signed in to change notification settings - Fork 97
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
new rust clippy #1292
new rust clippy #1292
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.
not sure why its a BIN file but all that was changed was the generator file (to enforce |
Those files are being marked as binary because they contain raw null bytes in them. It also is occuring in one of the places where the lint was being hit. I think we should fix it and have the null bytes be written as a binary string. i.e. in this case it should be: b"idle\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" Let's do that in a different PR. At any rate this code could have been auto-gen'd in so we might have to update it there too. |
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.
So because of the binary files, I can't really approve this code. I pulled it down locally and ran git diff
on the files and it also just says the file changed.
I am guessing these are auto-gen'd and totally fine to accept but I think someone else who has more context about what can and can't change should review this. I don't feel comfortable approving it.
@silverjam @notoriaga See discussion above
This should get rid of the null bytes - #1293 still shows up as bin for me. Maybe takes a bit to update or has to be merged into main |
@notoriaga Thanks for fixing that null bytes issue so quickly, i know it was a bit nitpicky but i think it is better this way. I think the reason it is showing it as a binary file is because the diff against main still shows the non-printable characters. I am not a git expert, but i think we could fix it with a |
see this pr which would render even the old files with the null bytes: #1294 |
fixes https://github.com/swift-nav/libsbp/actions/runs/4020003836/jobs/6907469269