Skip to content

Conversation

@jessebraham
Copy link

Not sure if this is the most correct solution or not, but at least seems to resolve the issues I (and others) were having, and tests are passing. Given that unit variants in enums cannot have parameters, doesn't make sense to capture format strings for these IMO.

Added a couple more basic tests for this specific case as well.

If accepted, closes #363, and potentially #361 too?

If there are any changes you'd like made please let me know, happy to do so.

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.

Using #[strum(to_string = "}")] results in macro error

1 participant