[PR #3874] [MERGED] Render: log_display only on Linux (macOS clippy failed on main) #5264

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

📋 Pull Request Information

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

Base: main ← Head: fix/display-log-linux-only


📝 Commits (1)

  • 0c9e995 Render: log_display only where Wayland's HDR reports call it

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+2 -0)

📄 Description

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

What and why

log_display (crates/horizon-client-render/src/gfx.rs) has one caller, reported, which is #[cfg(target_os = "linux")]. On macOS and Windows it is dead code, so cargo clippy -- -D warnings (and tools/pr_ready.py) fails there on main, while Linux CI passes. Gate it the same way.

Vanilla reference

none (build fix)

Self-check

cargo clippy -p horizon-client-render --all-targets -- -D warnings on macOS: clean (was: function log_display is never used). cargo fmt --check: 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/3874 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/display-log-linux-only` --- ### 📝 Commits (1) - [`0c9e995`](https://github.com/horizon-rust/horizon/commit/0c9e99525708ccb0d6799d3bb0ad786771723c5f) Render: log_display only where Wayland's HDR reports call it ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+2 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why `log_display` (crates/horizon-client-render/src/gfx.rs) has one caller, `reported`, which is `#[cfg(target_os = "linux")]`. On macOS and Windows it is dead code, so `cargo clippy -- -D warnings` (and `tools/pr_ready.py`) fails there on main, while Linux CI passes. Gate it the same way. ## Vanilla reference none (build fix) ## Self-check `cargo clippy -p horizon-client-render --all-targets -- -D warnings` on macOS: clean (was: `function log_display is never used`). `cargo fmt --check`: 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 05:11:22 +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#5264
No description provided.