Skip to content

Use Error types instead of String #65

@bobbens

Description

@bobbens

The rust sdl2 bindings use String everywhere for errors, which makes it play poorly with anyhow and similar crates. This wasn't done in the sdl2 crate because it was a breaking change. Since sdl3 is a breaking change itself, it may be worth doing something in this direction.

Could be as easy as a tuple struct SdlError(String) that implements Error as mentioned in the PR below.

For reference:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions