-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Question on unwrap_or_default #37025
Comments
I'm not sure why the method was left off some_result.unwrap_or_else(Default::default) |
Would you consider accepting a pull request which implements |
It might not be a good thing to make unwrapping results more ergonomic. |
@devonhollowood A guess: it sounds appropriate to be just a PR. The libs team will ask you to "escalate" it to an RFC only if it's needed. |
It'd be nice to address this papercut. |
…xcrichton Add `unwrap_or_default` method to `Result` Fixes #37025
Just a short question: What is the reason that unwrap_or_default is implemented for Option, but not for Result?
The text was updated successfully, but these errors were encountered: