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

fix(macro): recognize option references #219

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Conversation

6d7a
Copy link
Member

@6d7a 6d7a commented Feb 2, 2024

Closes #217

OptionalEnum::is_option_type did not properly process references to Options. References to Option types are present in enum values with named fields. This PR fixes that behavior and adds a test for it.

OptionalEnum::is_option_type did not properly process references to Options.
References to Option types are present in enum values with named fields.
@XAMPPRocky
Copy link
Collaborator

Thank you for your PR!

@XAMPPRocky XAMPPRocky merged commit 8ec5684 into librasn:main Feb 2, 2024
65 checks passed
@github-actions github-actions bot mentioned this pull request Feb 2, 2024
@orthecreedence
Copy link
Contributor

@6d7a swoops in for another fix. Thanks for this!

6d7a added a commit to 6d7a/rasn that referenced this pull request Feb 3, 2024
* fix(macro): recognize option references

OptionalEnum::is_option_type did not properly process references to Options.
References to Option types are present in enum values with named fields.

* style: cargo fmt
@6d7a 6d7a deleted the fix/217 branch April 16, 2024 09:26
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.

Question about DER encoding discrepancy between versions (0.7 -> 0.8)
3 participants