Skip to content

Implement Error::source when supported #1768

Closed
@seanmonstar

Description

@seanmonstar

The source method is the better replacement for cause. Hyper's Error should implement the method.

However, it's only available on newer Rust versions. To prevent requiring a new version, a build script can check rustc --version and set a cfg flag such that it's only implemented when available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-errorArea: error handlingC-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions