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

Support for #[error(forward)] #428

Closed
mamekoro opened this issue Nov 30, 2024 · 1 comment
Closed

Support for #[error(forward)] #428

mamekoro opened this issue Nov 30, 2024 · 1 comment

Comments

@mamekoro
Copy link

Could you consider adding support for #[error(forward)] which provide the same functionality as #[error(transparent)] in the thiserror crate? (Use cases are explained there.)

In short, this would make fn source() return self.source.as_dyn_error().source() instead of Some(self.source.as_dyn_error()).

I can use thiserror, but derive_more is a crate I use everywhere, and it would be nice to have this functionality without depending on thiserror.

@mamekoro
Copy link
Author

Oops. It seems there's already a PR for this (#293). I was only searching for issues.

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

No branches or pull requests

1 participant