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

Impl std::error::Error for VfsError #32

Merged
merged 1 commit into from
May 16, 2022

Conversation

Technohacker
Copy link
Contributor

This enables further compatibility with the rest of the Rust error handling ecosystem. Provides an implementation of source() that returns the nested VfsError cause if the current type is VfsError::WithContext

The original reason for this change was to make VfsError compatible with thiserror::Error, since it expects an impl std::error::Error for auto-generating From impls

This enables further compatibility with the rest of the Rust error
handling ecosystem. Provides an implementation of source() that returns
the nested VfsError cause if the current type is VfsError::WithContext
@manuel-woelker manuel-woelker merged commit 9728b20 into manuel-woelker:master May 16, 2022
@manuel-woelker
Copy link
Owner

Nice, thanks for the PR!

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