-
Notifications
You must be signed in to change notification settings - Fork 248
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
fix: use index override when decoding enums in events #382
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know there are already no tests for the events decoding, but I think we need some.
Should be trivial to add a test for this after #384 is merged (which adds unit testing for the EventsDecoder
).
8276999
to
b43743d
Compare
b43743d
to
2603157
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Niklas Adolfsson <[email protected]>
* fix: use index override when decoding enums in events * fix: ignore clippy warning in test Co-authored-by: Niklas Adolfsson <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
Without this fix, if an event contains an enum with explicit indices, it fails to decode