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

Use darling's with to handle unnesting attrs #313

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Commits on Feb 23, 2024

  1. Use darling's with to handle unnesting attrs

    Before darling 0.20.8, the receiver struct had to take the forwarded attributes without transformation.
    That led to the options structs having a field called attrs that was drained during FromDeriveInput/FromField execution, and was vestigial on the finished struct.
    
    The new approach instead does that transformation in the attrs field, resulting in an emitted type that is cleaner and more obvious to use.
    TedDriggs committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    995260c View commit details
    Browse the repository at this point in the history