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

Open
mamekoro opened this issue Nov 30, 2024 · 1 comment · May be fixed by #293
Open

Support for #[error(forward)] #428

mamekoro opened this issue Nov 30, 2024 · 1 comment · May be fixed by #293
Assignees

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.

@tyranron tyranron reopened this Dec 2, 2024
@tyranron tyranron linked a pull request Dec 2, 2024 that will close this issue
6 tasks
@tyranron tyranron removed the duplicate label Dec 2, 2024
@tyranron tyranron linked a pull request Dec 2, 2024 that will close this issue
6 tasks
@tyranron tyranron self-assigned this Dec 2, 2024
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 a pull request may close this issue.

2 participants