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

der_derive: use TryFrom conversions for asn1(type = ...) #1562

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Oct 9, 2024

Previously it was using <asn1_type>::new.

Using TryFrom is more flexible in terms of the possible conversions that it permits.

Also fills out the missing From/TryFrom conversions needed for the existing crates in this repo (most notably x509-cert to compile with the changes).

Previously it was using `<asn1_type>::new`.

Using `TryFrom` is more flexible in terms of the possible conversions
that it permits.

Also fills out the missing `From`/`TryFrom` conversions needed for the
existing crates in this repo (most notably `x509-cert` to compile with
the changes).
@tarcieri tarcieri force-pushed the der_derive/use_try_from_asn1_type branch from 6b4af73 to 3ba3224 Compare October 9, 2024 18:50
@tarcieri tarcieri merged commit 94f0b86 into master Oct 10, 2024
106 checks passed
@tarcieri tarcieri deleted the der_derive/use_try_from_asn1_type branch October 10, 2024 00:11
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.

1 participant