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

Add FromResidual<Result<!, Error>> impl for Status #223

merged 2 commits into from May 20, 2021


Copy link

Follow-up to #221. I tried to use the StatusResidual introduced in that PR together with the ? operator, but found no way to construct it.

In order to make fallible methods such as allocate_pool usable with the ? operator again, this PR implements FromResidual<core::result::Result<Infallible, Error>> for Status.

Copy link

Thanks for fixing this!

@GabrielMajeri GabrielMajeri merged commit f88b78a into rust-osdev:master May 20, 2021
@phil-opp phil-opp deleted the fix-try-impl branch May 21, 2021 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants