Skip to content

fix: change EventMsg enum so every variant takes a single struct - #925

Merged
bolinfest merged 1 commit into
mainfrom
pr924
May 14, 2025
Merged

bolinfest merged 1 commit into
mainfrom
pr924

Conversation

@bolinfest

@bolinfest bolinfest commented May 14, 2025 •

Copy link
Copy Markdown
Collaborator

#922 did this for the SessionConfigured enum variant, and I think it is generally helpful to be able to work with the values as each enum variant as their own type, so this converts the remaining variants and updates all of the callsites.

Added a simple unit test to verify that the JSON-serialized version of Event does not have any unexpected nesting.

@bolinfest
bolinfest force-pushed the pr924 branch 6 times, most recently from 29fea45 to a017ebf Compare May 14, 2025 03:36
@bolinfest
bolinfest merged commit a5f3a34 into main May 14, 2025
@bolinfest
bolinfest deleted the pr924 branch May 14, 2025 03:44
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2025
@bolinfest bolinfest added the rust label May 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant