You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect this can be supported by adding a new case to the variant.discriminant match statement, I'll look into what tokens speedy-derive is getting from the macro and make a PR.
To answer why such a macro is useful; I'm defining copies/subsets of enums that are used in an API and using a macro like this to automatically add From/TryFrom implementations.
The text was updated successfully, but these errors were encountered:
The following example hits a panic in speedy:
This originates from the following match https://github.com/koute/speedy/blob/master/speedy-derive/src/lib.rs#L1905-L1936
There is a workaround using
speedy(tag = $expr)
:But I would expect both to work.
I expect this can be supported by adding a new case to the
variant.discriminant
match statement, I'll look into what tokensspeedy-derive
is getting from the macro and make a PR.To answer why such a macro is useful; I'm defining copies/subsets of enums that are used in an API and using a macro like this to automatically add
From
/TryFrom
implementations.The text was updated successfully, but these errors were encountered: