Skip to content

Support for #[error(forward)] #428

@mamekoro

Description

@mamekoro

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.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions