Repository navigation
macos: Build popup::window_at with dev only - #4242
Merged
Merged
Conversation
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`.
huacnlee
approved these changes
Dec 3, 2026
huacnlee
left a comment
Member
There was a problem hiding this comment.
✅ Correct one-line fix for the dead_code Clippy failure on main: popup::window_at is now built only with dev, matching its single caller.
crates/nsh-platform-macos/src/popup.rs:620—#[cfg(feature = "dev")]onwindow_at. Its only caller issynth.rs:102, which isdev-only.- The private
takes_pointer(popup.rs:604) is still used by the non-devpath atpopup.rs:595, so gating this function does not create a new dead-code warning. - No behavior or public API change. The description is clear.
CI: compat passed. check (macos-15), which is the job this PR fixes, plus check (ubuntu/windows), web and smoke are still pending. Approve only after check (macos-15) is green.
Reviewed head 3ca26fd.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main fails
check (macos-15)(cargo clippy -p nsh-macos-app --no-default-features --features js -- -D warnings):popup::window_at(added in #3985) has one caller, the test agent insynth.rs, and that module is built withdevonly. Buildwindow_atwithdevonly too.No behavior or public API change.
Verification: local Clippy without
dev(the failing command) andcargo clippy -p nsh-platform-macos --all-targets --features nsh-platform-macos/dev -- -D warningsboth pass; CI on this PR.