Skip to content

Remove public From<String> implementations from FFI error wrappers #1117

Closed

Description

@spacebear21

Following up on #737, there are three remaining FFI error types that implement From<String>: PjParseError, PjNotSupported and OhttpError.

Ideally these types should just wrap the inner payjoin error instead of using a custom msg: String inner value. If that's not possible due to complex inner types, at the very least we should use map_err instead of exposing From<String> in the public API.

Activity

  1. arminsabouri commented on Sep 29, 2025

    @arminsabouri
    Contributor

    Assigned to @chavic

  2. added this to the payjoin-1.0 milestone on Sep 29, 2025
  3. spacebear21 commented on Oct 9, 2025

    @spacebear21
    CollaboratorAuthor

    Closed by #1127 . I'd like to follow up by fixing the underlying rust-payjoin error types so that we don't need to stringify the contents for FFI and can just wrap around the error with #[error(transparent)].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions