Conversation
📝 WalkthroughWalkthroughThe PR renames the List enum variant from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@haya_protocol/src/serverbound/common.rs`:
- Around line 30-46: The ResourcePackAction enum is serialized as u8 but lacks
explicit discriminant values; update the enum (ResourcePackAction) to assign
explicit u8 discriminants to each variant (e.g., SuccessfullyLoaded = 0,
Declined = 1, etc.) to ensure wire stability and prevent accidental reordering;
keep the repr(u8) and existing is_terminal() method unchanged, only add explicit
= <number> values to each variant in the enum declaration.
Summary by CodeRabbit
New Features
Bug Fixes