-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add clippy::cast_lossless #3216
Add clippy::cast_lossless #3216
Conversation
Hey @JonathanWoollett-Light I've fixed warnings for aarch64 CI |
4737748
to
c790a5b
Compare
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.
Great work!
On ARM you will need to update the code coverage values. Pick the outputs given in the failing tests (82.41
for 5.10 and 79.60
for 4.14) then paste these value as the new targets under tests/integration_tests/build/test_coverage.py
.
I see some changes to tests/integration_tests/build/test_clippy.py
are included, it would best to avoid changes to this in this PR.
c790a5b
to
f709c7c
Compare
I've pushed the updated values in Regarding the |
Yep, using the It'd be worth opening a separate PR for the black reformat here. |
992ffb9
to
e7c966f
Compare
Separate PR for black reformat is ready here - #3232 I've reverted the formatting here. Also - should this clippy lint be added to bindgen? Same as |
It doesn't matter too much if it doesn't trigger any warnings, but I'd lean towards yes to avoid future errors. |
Done ✔️ |
Please squash all your changes into 1 commit for implementing the lint and 1 commit for the code coverage changes. |
cfa300b
to
0aec9ce
Compare
done ✔️ |
cc53056
to
fa55c88
Compare
fa55c88
to
6c453d3
Compare
You can rename the 2nd commit to simply |
6c453d3
to
be20a67
Compare
@JonathanWoollett-Light done ✔️ |
Getting failures for Arm coverage being higher, the 2nd commit needs to be adjusted to match ( |
be20a67
to
05127c5
Compare
42cdc44
to
178c768
Compare
Signed-off-by: StemCll [email protected]
Signed-off-by: StemCll [email protected]
178c768
to
ed8c793
Compare
Changes
Adds
clippy::cast_lossless
warning.Reason
Closes #3196
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.
PR Checklist
git commit -s
).unsafe
code is documented.CHANGELOG.md
.rust-vmm
.