[PR #2719] [CLOSED] entity_nbt: drop the unreachable second rabbit arm #4561

Closed
opened 2026-11-03 04:18:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2719
Author: @iLostName
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: entity-nbt-duplicate-rabbit-arm


📝 Commits (1)

  • d644039 entity_nbt: drop the unreachable second rabbit arm

📊 Changes

1 file changed (+1 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+1 -4)

📄 Description

What and why

main fails clippy (unreachable_patterns): #2585 and #2547 both added a "minecraft:rabbit" arm in entity_nbt.rs. This keeps the first, which writes RabbitType and MoreCarrotTicks, and drops the second, which no value reached.

Vanilla reference

Rabbit.addAdditionalSaveData writes RabbitType and MoreCarrotTicks.

Self-check

cargo clippy -p horizon-client --all-targets -- -D warnings ✅, cargo fmt --check ✅, entity_nbt tests ✅ (Windows).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2719 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `entity-nbt-duplicate-rabbit-arm` --- ### 📝 Commits (1) - [`d644039`](https://github.com/horizon-rust/horizon/commit/d6440397270c396242a88ee2e99ccc86d58e6889) entity_nbt: drop the unreachable second rabbit arm ### 📊 Changes **1 file changed** (+1 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+1 -4) </details> ### 📄 Description ## What and why `main` fails clippy (`unreachable_patterns`): #2585 and #2547 both added a `"minecraft:rabbit"` arm in `entity_nbt.rs`. This keeps the first, which writes `RabbitType` and `MoreCarrotTicks`, and drops the second, which no value reached. ## Vanilla reference `Rabbit.addAdditionalSaveData` writes `RabbitType` and `MoreCarrotTicks`. ## Self-check `cargo clippy -p horizon-client --all-targets -- -D warnings` ✅, `cargo fmt --check` ✅, `entity_nbt` tests ✅ (Windows). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:18:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4561
No description provided.