Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow deriving Default, and using #[default] variants #57

Merged
merged 3 commits into from
Aug 16, 2021

Commits on Aug 16, 2021

  1. Support standard #[default] attr for FromPrimitive

    rust-lang/rust#87517 started standardising
    `#[default]` as an attribute on enum variants, support it compatibly
    identically to `#[num_enum(default)]`.
    illicitonion committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    440ea6c View commit details
    Browse the repository at this point in the history
  2. Add Default derive

    illicitonion committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    0fc72f0 View commit details
    Browse the repository at this point in the history
  3. Move garbage_attribute test so it actually runs

    And fix it
    illicitonion committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    deb11d4 View commit details
    Browse the repository at this point in the history