Skip to content

Conversation

pnuts93
Copy link

@pnuts93 pnuts93 commented Apr 21, 2025

changelog: [unnecessary_option_map_or_else]: Added lint unnecessary_option_map_or_else. As suggested in the issue description, the implementation takes as reference the issue #7328. The tests for lints option_if_let_else and or_fun_call needed to be adjusted to comply with new lint.
fixes #14588

@rustbot
Copy link
Collaborator

rustbot commented Apr 21, 2025

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 21, 2025
Copy link
Contributor

@llogiq llogiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good in general, I just have a few subtle suggestions. Please use snippet_with_applicability instead of plain snippet. Otherwise, we end up breaking cargo fix. In addition, I'd like to see some tests for other scenarios.

@rustbot
Copy link
Collaborator

rustbot commented Jun 5, 2025

☔ The latest upstream changes (possibly 6ef2a2d) made this pull request unmergeable. Please resolve the merge conflicts.

@Jarcho
Copy link
Contributor

Jarcho commented Sep 18, 2025

Ping @pnuts93 this needs a rebase.

@llogiq is the review for this done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unnecessary_option_map_or_else
4 participants