Skip to content

Honor parse_err_ty attribute when the enum has a default variant#431

Merged
Peternator7 merged 2 commits intoPeternator7:masterfrom
scovich:default-variant-err-type
Feb 21, 2026
Merged

Honor parse_err_ty attribute when the enum has a default variant#431
Peternator7 merged 2 commits intoPeternator7:masterfrom
scovich:default-variant-err-type

Conversation

@scovich
Copy link
Contributor

@scovich scovich commented Apr 9, 2025

Currently, the EnumString ignore the parse_err_ty attribute for any enum with a #[strum(default)] variant. Fix it and add a unit test to validate the behavior.

Fixes #430

@Peternator7 Peternator7 merged commit 0ccbbf8 into Peternator7:master Feb 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EnumString macro ignores parse_err_ty when there is a default variant

2 participants