Skip to content

der: remove Reader::read_value #1887

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

Merged
merged 1 commit into from
Jun 21, 2025
Merged

der: remove Reader::read_value #1887

merged 1 commit into from
Jun 21, 2025

Conversation

tarcieri
Copy link
Member

This was added in #1877 but the real value of that PR was the automatic read_nested on DecodeValue impls. Reader::read_value isn't actually necessary for that at all.

It may be useful in the future if we introduce a BER reader that can handle decoding constructed e.g. strings from indefinite length encoding, but since we don't actually have anything like that yet, removing this avoids some unnecessary duplication and API surface for the Reader.

This was added in #1877 but the real value of that PR was the automatic
`read_nested` on `DecodeValue` impls. `Reader::read_value` isn't
actually necessary for that at all.

It may be useful in the future if we introduce a BER reader that can
handle decoding constructed e.g. strings from indefinite length
encoding, but since we don't actually have anything like that yet,
removing this avoids some unnecessary duplication and API surface for
the `Reader`.
@tarcieri tarcieri merged commit 5277fcf into master Jun 21, 2025
107 checks passed
@tarcieri tarcieri deleted the der/remove-read-value branch June 21, 2025 16:57
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