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

Correctly process flatten fields in enum variants #2567

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

Commits on Aug 10, 2023

  1. Add regression test for issue serde-rs#2565

    failures (1):
        regression::issue2565::simple_variant
    Mingun committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    47b4b12 View commit details
    Browse the repository at this point in the history
  2. Add regression test for issue serde-rs#1904

    Currently panics in derive
    Mingun committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    68ec2b4 View commit details
    Browse the repository at this point in the history
  3. Correctly process flatten fields in enum variants

    - Fix incorrect deserialization of variants that doesn't contain flatten field when other contains
    - Fix a panic when deriving `Deserialize` for an enum with tuple and struct with flatten field
    
    Fixes (2):
        regression::issue2565::simple_variant
        regression::issue1904 (compilation)
    Mingun committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    4079744 View commit details
    Browse the repository at this point in the history