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

Add duplicate-field checking to darling_core for fields #56

Closed
TedDriggs opened this issue Feb 5, 2019 · 0 comments · Fixed by #130
Closed

Add duplicate-field checking to darling_core for fields #56

TedDriggs opened this issue Feb 5, 2019 · 0 comments · Fixed by #130

Comments

@TedDriggs
Copy link
Owner

Right now, the following is valid:

#[derive(FromMeta)]
pub struct Foo {
    #[darling(skip, skip = false)]
    my_field: String;
}

This is probably the result of an error in the crate that's consuming darling, so it'd be nice to tell them. However, it's worth noting that this would be a breaking change, so it needs to wait for a new minor version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant