-
Notifications
You must be signed in to change notification settings - Fork 1k
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
chore: activate clippy::manual_let_else
lint
#4770
chore: activate clippy::manual_let_else
lint
#4770
Conversation
…eat/4741-manual-let-else-lint
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.
Very nice! I made some comments where I think we can be more idiomatic with combinators :)
This pull request has merge conflicts. Could you please resolve them @eserilev? 🙏 |
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!
A few more minor comments :)
This pull request has merge conflicts. Could you please resolve them @eserilev? 🙏 |
I pushed up some changes based on your feedback |
Thank you for the work here. I am in favor of the refactorings. Will defer to @thomaseizinger. Let me know if you need something from my end. |
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!
If I run cargo clippy --all-targets --all-features
locally, it is still coming up with several instances of the lint and CI does too! :)
https://github.com/libp2p/rust-libp2p/actions/runs/6754481746/job/18362004203
clippy::manual_let_else
clippy::manual_let_else
lint
… feat/4741-manual-let-else-lint
…eat/4741-manual-let-else-lint
…eat/4741-manual-let-else-lint
I resolved the additional lints, had to update my local clippy to use the nightly toolchain to catch those. I also made some changes based on your feedback. Thanks! |
clippy::manual_let_else
lintclippy::manual_let_else
lint
This comment was marked as resolved.
This comment was marked as resolved.
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.
Awesome stuff! Just one more suggestions, otherwise I think this is ready :)
Refactor let else usage to align w/ idiomatic usage of Rust by activating `clippy::manual_let_else` lint, and resolving all the warning messages. Resolves: libp2p#4741. Pull-Request: libp2p#4770.
Description
Refactor let else usage to align w/ idiomatic usage of Rust by activating
clippy::manual_let_else
lint, and resolving all the warning messages.Resolves: #4741.
Notes & open questions
Change checklist