[PR #1707] [MERGED] Clippy: clear the two warnings the whole tree fails on #3702

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1707
Author: @Domanffe
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: chore/clippy-green


📝 Commits (2)

  • 961af30 Clippy: clear the two warnings that the whole tree fails on
  • fb1f421 Clippy: take the decorated region by value, and gate the unix-only test helper

📊 Changes

2 files changed (+5 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/streaming.rs (+4 -4)
📝 crates/horizon-server/src/update.rs (+1 -0)

📄 Description

🤖 Agent

cargo clippy --all-targets -- -D warnings fails on main, on Windows, in two places, and pr_ready stops after its clippy step, so every branch reports its tests, doc tests and all three launcher checks as failed without having run them.

The first: horizon-server/src/update.rs:784, fn scratch is only called from the #[cfg(unix)] test helpers, so on Windows it is dead. It stays compiled and carries #[cfg_attr(not(unix), allow(dead_code))], with a line saying why.

The second: horizon-client/src/streaming.rs:640, receive_decorated takes region: Box<[Proto; 9]> and clippy wants boxed_local gone. The box is the queue's: Done::Decorated holds it, and taking it by value moves the nine protos out without a copy, so the signature stays and the lint is expected with that reason.

After both, cargo clippy --all-targets -p horizon-server -p horizon-client -- -D warnings reports nothing on 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/1707 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/clippy-green` --- ### 📝 Commits (2) - [`961af30`](https://github.com/horizon-rust/horizon/commit/961af30997b43f76ff02cfe0b5dac24c59366cc0) Clippy: clear the two warnings that the whole tree fails on - [`fb1f421`](https://github.com/horizon-rust/horizon/commit/fb1f421117bdf5425fbe9ddf3162e67b39ed5139) Clippy: take the decorated region by value, and gate the unix-only test helper ### 📊 Changes **2 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/streaming.rs` (+4 -4) 📝 `crates/horizon-server/src/update.rs` (+1 -0) </details> ### 📄 Description 🤖 Agent `cargo clippy --all-targets -- -D warnings` fails on main, on Windows, in two places, and `pr_ready` stops after its clippy step, so every branch reports its tests, doc tests and all three launcher checks as failed without having run them. The first: `horizon-server/src/update.rs:784`, `fn scratch` is only called from the `#[cfg(unix)]` test helpers, so on Windows it is dead. It stays compiled and carries `#[cfg_attr(not(unix), allow(dead_code))]`, with a line saying why. The second: `horizon-client/src/streaming.rs:640`, `receive_decorated` takes `region: Box<[Proto; 9]>` and clippy wants `boxed_local` gone. The box is the queue's: `Done::Decorated` holds it, and taking it by value moves the nine protos out without a copy, so the signature stays and the lint is expected with that reason. After both, `cargo clippy --all-targets -p horizon-server -p horizon-client -- -D warnings` reports nothing on 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:11:33 +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#3702
No description provided.