-
Notifications
You must be signed in to change notification settings - Fork 0
Force default attribute on enums when Default derive is enabled #43
Copy link
Copy link
Closed
Labels
DXDeveloper experience improvementsDeveloper experience improvementsFeatureNew featuresNew featuresPracticalSomething that is needed for a real-world projectSomething that is needed for a real-world projectTarget: RustRust code generationRust code generation
Description
Right now, Default is not derived at all, and an attempt to enable it via configuration will result in incorrect Rust code being generated. The default enum variant must be annotated with #[default] to make it work. Similarly, Genotype should accept this attribute and propagate it to Rust.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DXDeveloper experience improvementsDeveloper experience improvementsFeatureNew featuresNew featuresPracticalSomething that is needed for a real-world projectSomething that is needed for a real-world projectTarget: RustRust code generationRust code generation
Projects
Status
Shipped