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

error: add io::Error conversion #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tharvik
Copy link

@tharvik tharvik commented Oct 6, 2024

accessing the contained io::Error solely via a ref is a bit bothering to work with.

this PR takes from sync walkdir's Error allowing to extract the underlying io::Error.

  • into_io to extract the contained io::Error
  • From<Error> for io::Error to create a more "classic" error type

note: I choose to name it into_io() to be consistant with io(), in contrario to upstream postfix theses with "_error".

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.

1 participant