From 3ca26fd804184617cabf73ff7c06eb3951757a0f Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Thu, 3 Dec 2026 08:55:07 -0800 Subject: [PATCH] macos: Build `popup::window_at` with `dev` only Its only caller is the test agent in `synth.rs`, which is built with `dev` only, so the macOS Clippy check without `dev` fails with `function window_at is never used`. --- crates/nsh-platform-macos/src/popup.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nsh-platform-macos/src/popup.rs b/crates/nsh-platform-macos/src/popup.rs index 0013947f72..a8a808176f 100644 --- a/crates/nsh-platform-macos/src/popup.rs +++ b/crates/nsh-platform-macos/src/popup.rs @@ -617,6 +617,7 @@ fn takes_pointer(popup: &Popup, at: NSPoint) -> bool { /// overlays where it takes the pointer (the newest on top), else /// `window`. The test agent posts its pointer as the system would deliver /// it. +#[cfg(feature = "dev")] pub(crate) fn window_at(window: &NSWindow, at: NSPoint) -> (Retained, NSPoint) { let screen = window.convertPointToScreen(at); OPEN.with_borrow(|o| {