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.
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 lydjotj6f@mozmail.com
Signed-off-by: StemCll lydjotj6f@mozmail.com
178c768 to
ed8c793
Compare
Changes
Adds
clippy::cast_losslesswarning.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).unsafecode is documented.CHANGELOG.md.rust-vmm.