Skip to content

impl Error for Box lacks source() impl #61899

Closed
@s3bk

Description

@s3bk

the Error impl of Box<T: Error> does not include the source function, however it contains cause, causing different results when switching from cause to source.
A small code that demonstrates this is here.

Solution: implement source() for Box<T: Error> by forwarding to T::source()

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions