Skip to content

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

Merged
GabrielMajeri merged 2 commits into
rust-osdev:masterfrom
phil-opp:fix-try-impl
May 20, 2021
Merged

GabrielMajeri merged 2 commits into
rust-osdev:masterfrom
phil-opp:fix-try-impl

Conversation

@phil-opp

Copy link
Copy Markdown
Member

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.

@phil-opp
phil-opp requested a review from GabrielMajeri May 20, 2021 12:20
@GabrielMajeri

Copy link
Copy Markdown
Collaborator

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants