Skip to content

TryFromPrimitive should return an error on default and catch_all #143

@AlexSherbinin

Description

@AlexSherbinin

Now when using #[num_enum(default)] or #[num_enum(default)] with TryFromPrimitive it just ignores them.
But it's more reasonable to return error because of missing support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions