near / borsh-rs

Rust implementation of Binary Object Representation Serializer for Hashing
https://borsh.io/
Apache License 2.0
299 stars 65 forks source link

chore: simplify discriminants handling in schema derives #241

Closed mina86 closed 10 months ago

mina86 commented 11 months ago

There’s no need for a separate discriminant variable and assignment statement in the derived code. The value of the discriminant can be included directly in the entry for the variant.

mina86 commented 10 months ago

cargo-doc failure is not of my doing.