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

add reason enum to use instead of string value for error messages #127

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

knickish
Copy link
Collaborator

@knickish knickish commented Jan 18, 2025

Changes the error type so that new variants may be added in future without breaking changes

@knickish knickish marked this pull request as ready for review January 18, 2025 21:28
@knickish knickish self-assigned this Jan 18, 2025
@knickish knickish requested a review from not-fl3 January 18, 2025 21:28
src/serde_bin.rs Outdated
pub enum DeBinErrReason {
Length {
/// Expected Length
l: usize,
Copy link
Owner

Choose a reason for hiding this comment

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

while its a public enum, I would use expected_length: usize

@knickish knickish merged commit d0db4bf into not-fl3:master Feb 8, 2025
16 checks passed
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.

2 participants