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 IntoInnerError::into_error() #304

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Add IntoInnerError::into_error() #304

merged 1 commit into from
Mar 6, 2023

Commits on Mar 6, 2023

  1. Add IntoInnerError::into_error()

    Currently, for code that doesn't attempt to recover from errors but just
    reports the error to the caller, it's forced to return the entire
    `IntoInnerError`, which is very big compared to `io::Error` which is
    where the actual error is.
    
    This commit adds `IntoInnerError::into_error()` method that consumes
    `IntoInnerError` and returns contained `io::Error`. This mirrors the API
    of `std::io::IntoInnerError` in Rust stdlib, which provides such method.
    
    Signed-off-by: Marcel Guzik <[email protected]>
    Bravo555 committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    eba4ed6 View commit details
    Browse the repository at this point in the history