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

Produce error for default with field.type #271

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Commits on Oct 26, 2022

  1. Produce error for default with field.type

    If `field.type` is used without `field.build`, a Move conversion is used instead of the OptionOrDefault conversion.
    This means that the presence of `field.type` prevents a field-level `default` from doing anything.
    Standard practice in derive_builder is to produce an error when parameters are not going to be used.
    
    Fixes #269
    TedDriggs committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    fa008a0 View commit details
    Browse the repository at this point in the history