-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
#7594: Adding new 'while_let_some_result' linting #7608
#7594: Adding new 'while_let_some_result' linting #7608
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon. Please see the contribution instructions for more information. |
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.
Looks really good, thanks!
☔ The latest upstream changes (presumably #7604) made this pull request unmergeable. Please resolve the merge conflicts. |
@Manishearth @camsteffen Thank you for the suggestion to rename and add functionality to Although functioning, I know the syntax can be improved. After some time, I tried to do some clever
I tried |
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.
progress, some issues left
@andrewpollack yeah, there's no fancy syntax, just use a |
☔ The latest upstream changes (presumably #7715) made this pull request unmergeable. Please resolve the merge conflicts. |
ae672b7
to
baec67e
Compare
I pushed a commit making this change, and also rebased it (for future reference, please rebase instead of merging when there are merge conflicts, it makes it harder to do further rebases if merges are used) |
@bors r+ |
📌 Commit 17155c8 has been approved by |
…ishearth #7594: Adding new 'while_let_some_result' linting Excited for the opportunity to contribute to Clippy! Since the latest Bay Area Rust Meetup, I've been looking for an opportunity and found it 😄 Please let me know how I can improve this PR! Much of it is similar to ``[`if_let_some_result`]``, but I followed the description in the issue to create its own linting rules. Looking forward to feedback, and continuing to work on Clippy in the future! changelog: - Renamed Lint: `if_let_some_result` is now called [`match_result_ok`]. Now also handles `while let` case.
💔 Test failed - checks-action_test |
@bors retry (PR body changelong not in right format) |
…ishearth #7594: Adding new 'while_let_some_result' linting Excited for the opportunity to contribute to Clippy! Since the latest Bay Area Rust Meetup, I've been looking for an opportunity and found it 😄 Please let me know how I can improve this PR! Much of it is similar to ``[`if_let_some_result`]``, but I followed the description in the issue to create its own linting rules. Looking forward to feedback, and continuing to work on Clippy in the future! changelog: Renamed Lint: `if_let_some_result` is now called [`match_result_ok`]. Now also handles `while let` case.
💔 Test failed - checks-action_dev_test |
@bors r+ |
📌 Commit 13834e6 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Thank you so much for helping on this — this is incredibly valuable to
learn from, and I am grateful for your help! Excited to keep using and
learning Rust, and contributing where I can :]
…On Mon, Sep 27, 2021 at 10:25 PM Manish Goregaokar ***@***.***> wrote:
I pushed a commit making this change, and also rebased it
(for future reference, please rebase instead of merging when there are
merge conflicts, it makes it harder to do further rebases if merges are
used)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF5XNGJOK7KTFQ3H25ICH5TUEFGTXANCNFSM5DA4CK5A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Excited for the opportunity to contribute to Clippy! Since the latest Bay Area Rust Meetup, I've been looking for an opportunity and found it 😄
Please let me know how I can improve this PR! Much of it is similar to
[`if_let_some_result`]
, but I followed the description in the issue to create its own linting rules. Looking forward to feedback, and continuing to work on Clippy in the future!changelog: Renamed Lint:
if_let_some_result
is now called [match_result_ok
]. Now also handleswhile let
case.