treewide: tighten clippy lints#7483
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.
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.
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 <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
Unfortunately, there is no lint for that. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
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