borsh-rs icon indicating copy to clipboard operation
borsh-rs copied to clipboard

Don’t declare schema for empty enum variants

Open mina86 opened this issue 1 year ago • 0 comments

No information of the source type is lost by defining empty enum variants as unit type rather than creating a custom declaration for them. At the same time, not doing that simplifies the schemas and reduces chances for name collisions in derived schemas.

mina86 avatar Sep 19 '23 14:09 mina86