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

A more lightweight, informative error value in TryFrom<i32> for enums #1010

Merged
merged 2 commits into from
May 27, 2024

Commits on Mar 25, 2024

  1. Lightweight error value in TryFrom<i32> for enums

    Add a new UnknownEnumValue error type to prost,
    change the TryFrom<i32> conversions generated for enums to use that
    as the associated Error type. The error value carries the original
    integer, making it also more informative than DecodeError.
    mzabaluev committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    961617d View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. Configuration menu
    Copy the full SHA
    3d4da00 View commit details
    Browse the repository at this point in the history