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

#[derive(Default)] on enum variants with fields #3683

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Aug 25, 2024

  1. #[derive(Default)] on enum variants with fields

    Support the following:
    
    ```rust
    enum Foo {
        #[default]
        Bar {
            x: Option<i32>,
            y: Option<i32>,
        },
        Baz,
    }
    ```
    estebank committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    1304d15 View commit details
    Browse the repository at this point in the history
  2. fix typo

    estebank committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    9bc1aa3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1264c3c View commit details
    Browse the repository at this point in the history