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: add Decode and Encode impls for PhantomData #1009

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

tarcieri
Copy link
Member

Allows PhantomData fields to be used with custom derive.

cc @baloo

Comment on lines +271 to +272
/// Test handling of PhantomData.
pub phantom: PhantomData<()>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this as a spot check. It seems to work?

Allows `PhantomData` fields to be used with custom derive
@tarcieri tarcieri force-pushed the der/phantomdata-decode-and-encode-impls branch from 993e442 to 6476307 Compare April 18, 2023 13:12
@tarcieri tarcieri merged commit 86baf66 into master Apr 18, 2023
@tarcieri tarcieri deleted the der/phantomdata-decode-and-encode-impls branch April 18, 2023 17:31
baloo added a commit to baloo/formats that referenced this pull request Apr 18, 2023
similar to RustCrypto#1009, provide a `der::DerOrd` and a `der::ValueOrd` noop
implementation for PhantomData
tarcieri pushed a commit that referenced this pull request Apr 18, 2023
similar to #1009, provide a `der::DerOrd` and a `der::ValueOrd` noop
implementation for PhantomData
baloo added a commit to baloo/formats that referenced this pull request Apr 19, 2023
- `Decode` and `Encode` impls for `PhantomData` (RustCrypto#1009)
- `ValueOrd` and `DerOrd` impls for `PhantomData` (RustCrypto#1012)

- Bump `hex-literal` dependency to v0.4.1 (RustCrypto#999)
- Bump `der_derive` dependency to v0.7.1 (RustCrypto#1016)
baloo added a commit to baloo/formats that referenced this pull request Apr 19, 2023
Added
- `Decode` and `Encode` impls for `PhantomData` (RustCrypto#1009)
- `ValueOrd` and `DerOrd` impls for `PhantomData` (RustCrypto#1012)

Changed
- Bump `hex-literal` dependency to v0.4.1 (RustCrypto#999)
- Bump `der_derive` dependency to v0.7.1 (RustCrypto#1016)
@baloo baloo mentioned this pull request Apr 19, 2023
baloo added a commit that referenced this pull request Apr 19, 2023
Added
- `Decode` and `Encode` impls for `PhantomData` (#1009)
- `ValueOrd` and `DerOrd` impls for `PhantomData` (#1012)

Changed
- Bump `hex-literal` dependency to v0.4.1 (#999)
- Bump `der_derive` dependency to v0.7.1 (#1016)
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