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

Implement placeholder attribute to prevent multiple derive_wheres with different paths #37

Merged
merged 5 commits into from
Jan 23, 2022

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Jan 21, 2022

This addresses a suggestion I made in #36. It implements a placeholder attribute that is applies when a derive_where attribute is processed. Any subsequent calls to derive_where with different paths will error out when they find this attribute.

Additionally:

  • Adds a #[derive_where(crate = "derive_where_")] option.
  • Fixes some typos.
  • Adds a check for #[derive_where(Zeroize(crate = "::zeroize"))] because this is already the default.
  • Update zeroize.

@daxpedda daxpedda force-pushed the error-on-wrong-path branch from de9bf19 to 668c7f3 Compare January 21, 2022 12:47
@daxpedda daxpedda requested a review from ModProg January 22, 2022 20:34
@daxpedda daxpedda requested a review from ModProg January 23, 2022 13:29
@daxpedda daxpedda merged commit 38e48fb into ModProg:main Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants