[PR #5292] [CLOSED] LAN hub: one S::Attack arm (fixes main's clippy) #6190

Closed
opened 2026-11-03 06:15:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5292
Author: @ludovic111
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: a2/fix-hub-attack


📝 Commits (1)

  • 5672f41 LAN hub: one S::Attack arm (main's clippy fails on an unreachable pattern)

📊 Changes

1 file changed (+9 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/lan/hub.rs (+9 -10)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Main fails clippy -D warnings (so every PR's clippy/verify is red): lan/hub.rs has two S::Attack arms since #5123 merged beside the anticheat's, and the second (warning: unreachable pattern) never runs, so the attack's "break behind a queued move" from #5123 is lost too.

This keeps one arm: the anticheat check, then the push, then if self.move_queued(i) { break; } as #5123 meant.

Checked: cargo clippy -p horizon-client --lib -- -D warnings passes, fmt clean.

🤖 Generated with Claude Code


🔄 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/5292 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a2/fix-hub-attack` --- ### 📝 Commits (1) - [`5672f41`](https://github.com/horizon-rust/horizon/commit/5672f41859d458a07f026257e40f734de976cf07) LAN hub: one S::Attack arm (main's clippy fails on an unreachable pattern) ### 📊 Changes **1 file changed** (+9 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/hub.rs` (+9 -10) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Main fails `clippy -D warnings` (so every PR's clippy/verify is red): `lan/hub.rs` has two `S::Attack` arms since #5123 merged beside the anticheat's, and the second (`warning: unreachable pattern`) never runs, so the attack's "break behind a queued move" from #5123 is lost too. This keeps one arm: the anticheat check, then the push, then `if self.move_queued(i) { break; }` as #5123 meant. Checked: `cargo clippy -p horizon-client --lib -- -D warnings` passes, fmt clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:42 +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#6190
No description provided.