-
Notifications
You must be signed in to change notification settings - Fork 565
treewide: tighten clippy lints #7483
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
Conversation
c506844 to
a1371c9
Compare
a1371c9 to
ed39da1
Compare
|
@phip1611 Everything up to "misc: clippy: add manual_string_new" seems very non controversial to me - can you split that into a separate PR that we can land. The rest I think we might need to think about some more. |
b215dfc to
8911af4
Compare
rbradford
left a comment
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.
Thanks. lgtm to me - does anyone else have an opinion on this?
7511154 to
9a72b7a
Compare
861cb59 to
9ea9ce4
Compare
|
I removed |
9ea9ce4 to
ca46733
Compare
80abb66 to
d78fae0
Compare
likebreath
left a comment
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.
Overall looks good. Not very sure about unnecessary_semicolon and semicolon_if_nothing_returned, but no strong opinions here.
d78fae0 to
bb7ec82
Compare
Thanks! I don't have a strong opinion either. But if I read the lint descriptions, I have a tendency that it is beneficial. |
bb7ec82 to
d7e92c2
Compare
d7e92c2 to
c16cae6
Compare
|
LGTM. I suppose this serial is good for the code quality, thx. |
This is the first commit in a series of commits to improve the Code Quality in Cloud Hypervisor in a sustainable way. These are the default rules from `clippy::all` but written here to be more explicit. `clippy::all` refers to all "default sensible" lints, not all existing lints. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Unfortunately, there is no lint for that. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
c16cae6 to
edfc787
Compare
|
I don't quite see how this suddenly fails but never failed before? https://github.com/cloud-hypervisor/cloud-hypervisor/actions/runs/19564834479/job/56024328565?pr=7483 |
f02745a
Follow-up of #7482 to improve the code quality of Cloud Hypervisor in a sustainable way.
Most of the new individual lints are carefully selected from
clippy::pedantic. The current PR reflects the number of lints Rob approved for the first lint tightening iteration.Hints for Reviewers
I'd suggest we discuss and decide for each lint separately whether we want them. Therefore, I created one commit per lint for helping you finding a decisionRob already answered thisSteps to Undraft
cargo clippyjust works #7482