Skip to content
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

Simplify the use of Option::and_then #1889

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

mgeisler
Copy link
Contributor

I found a few places where Option::and_then could be simplified (in my opinion) with ? or with match.

I found a few places where `Option::and_then` could be simplified (in
my opinion) with `?` or with `match`.
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Seems reasonable, thanks!

@ehuss ehuss merged commit c8db0c8 into rust-lang:master Sep 12, 2022
@mgeisler
Copy link
Contributor Author

Thanks! :)

@mgeisler mgeisler deleted the simplify-and-then branch January 7, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants