Skip to content

bug: Error::with_temporary is private, but required to implement HttpFetch #6586

@bonsairobo

Description

@bonsairobo

Describe the bug

I am trying to impl HttpFetch for a newtype wrapper around reqwest_middleware::ClientWithMiddleware by copying the code from impl HttpFetch for reqwest::Client. This almost works except we can't call Error::with_temporary because it's private.

Steps to Reproduce

Try calling Error::with_temporary.

Expected Behavior

Error::with_temporary can be called.

Additional Context

No response

Are you willing to submit a PR to fix this bug?

  • Yes, I would like to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions