base red: cmux-tui clippy items_after_test_module, redundant_clone, nonminimal_bool

Closed
TE
4d ago
+27-27

The cmux-tui `clippy (changed cmux-tui packages)` job still fails on feat-cmux-next after #30528 (seen in run 41288268035):

  • `crates/acpmux/src/server/remote_guard.rs:1058` items_after_test_module: `cloud_chat_tests` moves to the end of the file.
  • `crates/cmux-tui-core/src/server/agent_session_folders.rs:281` redundant_clone (test).
  • `crates/cmux-tui/src/cli/cloud_repo.rs:122,125` nonminimal_bool: `!x.is_some_and(p)` becomes `x.is_none_or(!p)`.

No behavior change. Small (lint-only, 3 files). Unblocks the clippy job on #28215 and every other cmux-tui PR.

Agent session: agent session

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the three remaining Clippy lints in the cmux-tui packages so the clippy job on feat-cmux-next passes. No behavior change.

  • Moves the cloud_chat_tests module to the end of remote_guard.rs, drops a redundant clone in a test, and simplifies two boolean conditions in cloud_repo.rs.