Modify/remove the `#[codec(index)]` attribute
KiChjang opened this issue · 1 comments
KiChjang commented
With the release of Rust 1.66, discriminants are now allowed on enum variants with fields. This makes it easier to encode variants -- instead of relying on the custom #[codec(index)]
attribute, we can now directly encode the enum discriminant instead.
bkchr commented
Enums with integer representations can now use explicit discriminants, even when they have fields.
We also support custom index for other enums. We could also already have supported this syntax, as this is a macro. However, it should be kept explicit on what this index is about.