base red: macOS clippy in cmux-host identity.rs, the items only scoped() uses are Linux and test only (#31189)
Base-red-job: macOS clippy (scripts/ci/cmux-tui-rust-check.sh clippy, --os macos)
Fixes #31721
0272db645eb (#31189) added BIND_FILE, crate::config::Paths, SCOPED_INSTALL_KEY_FILE and SCOPED_RECEIPT at module level in cmux-tui/crates/cmux-host/src/identity.rs. Their only user, scoped(), is #[cfg(any(target_os = "linux", test))]. On macOS they are unused, so clippy -D warnings stops in cmux-host with 4 errors. Every agent's macOS clippy proof hits it.
Fix: the four items get the same #[cfg(any(target_os = "linux", test))] as scoped(). No code is deleted. Linux and the tests compile the same items as before. INSTALL_KEY_FILE stays unconditional because record() uses it on every platform.
Observed / Not run
Fleet, cmux-ci run --class isolated --os macos --script scripts/ci/cmux-tui-rust-check.sh --arg clippy:
- Base 64b25664427 (feat tip), step 62a9b73c8bb73665f5ae327f on aws-m4pro-3: exit 101.
cmux-host (lib) due to 4 previous errors(identity.rs:13, 14, 21, 22), plus 3 errors incmux-tui-coreagent_chat_notices.rsfrom #31770. - Head 20e935c637b, step 6f8736d82d2b314e18f1f314: cmux-host checks with no errors. The step still exits 101 only for the
agent_chat_notices.rserrors. Those are a different base red, fixed by the open #31907. - Head merged with #31907's head e7ecb66ba00 (proof commit a1ded70f569, a scratch branch, not for merge), step 98075a45d51fb321b265a869 on aws-m4pro-4: exit 0,
Finished. python3 scripts/cmux-next/prepush-gate.py: no new violations.
Not run: Linux clippy and the cmux-host tests (the change keeps every Linux and test item; CI runs Linux clippy).
Changelog
none
🤖 Generated with Claude Code