-
-
Notifications
You must be signed in to change notification settings - Fork 180
style: apply/fix more clippy lints (from cargo::nursery) #1761
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
9b911ae
to
cff70a4
Compare
uefi-raw/src/lib.rs
Outdated
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.
Per https://doc.rust-lang.org/clippy/, nursery lints are "new lints that are still under development". I don't think we should enable these, since there will likely be false positives. If a lint's development is completed then it will naturally graduate to a different group.
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.
Yeah, fine :)
Background: I use it in all my personal projects and never experienced any drawbacks; but we also do not really need it. So yeah, I'll remove that part from the PR.
Nevertheless, it is beneficial to temporarily activate the corresponding lints locally and see what code can be improved - I found quite some nice improvements
bdfb4d5
to
5a48c1c
Compare
5a48c1c
to
1aebf67
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.
Could you split the ok_or_else
changes to a separate PR? I'd like to review the other changes in isolation.
Uh oh!
There was an error while loading. Please reload this page.
Using
clippy::nursery
, I was able to perform the following improvements:Steps to Undraft
Checklist