Skip to content

errors: Remove ChainError impl for Option #3900

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

Closed
wants to merge 1 commit into from

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Sep 8, 2021

For Option there is nothing to chain onto, so we might as well use the built-in ok_or_else() method to convert the Option to a Result.

For `Option` there is nothing to chain onto, so we might as well use the built-in `ok_or_else()` method to convert the `Option` to a `Result`
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Sep 8, 2021
@Turbo87
Copy link
Member Author

Turbo87 commented Sep 8, 2021

closing in favor of #3901

@Turbo87 Turbo87 closed this Sep 8, 2021
@Turbo87 Turbo87 deleted the option-chain branch September 8, 2021 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants