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

Implement source instead of cause on std::error::Error types #243

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Implement source instead of cause on std::error::Error types #243

merged 1 commit into from
Aug 26, 2023

Conversation

bartelsielski
Copy link

The cause method has been deprecated since Rust 1.33.0 and has been replaced by source. The cause method's default implementation calls source so there is no need to implement them both.

On types which always return None in source, the implementation has been removed because the default implementation does exactly this.

The `cause` method has been deprecated since Rust 1.33.0 and has been replaced
by `source`.  The `cause` method's default implementation calls `source` so
there is no need to implement them both.

On types which always return `None` in `source`, the implementation has been
removed because the default implementation does exactly this.
@marshallpierce
Copy link
Owner

Thanks for the contribution. I'll be releasing a new version shortly, and this will be included.

@marshallpierce marshallpierce self-assigned this Jul 12, 2023
@marshallpierce marshallpierce merged commit 6f830f3 into marshallpierce:master Aug 26, 2023
@bartelsielski bartelsielski deleted the error-source branch April 19, 2024 07:11
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