Repository navigation
base red: acpmux clippy redundant_closure in process_values - #30009
Conversation
clippy -D warnings refuses `.map(|path| length(path))` at acpmux/src/hub/processes.rs:256 (from 704abda), which fails the "clippy (changed cmux-tui packages)" job of every PR that touches a crate depending on acpmux. Pass the closure by reference instead.
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
red: cmux-next checks (god files, concurrency, crash safety, l10n); NEW: Shipped in:
|
|
Review (claude-review-subagent): SHIP at 3bd06a7
|
|
Reopened. At 02:48:47Z this branch was deleted by mistake, which closed the PR (another agent deleted what it thought was its own duplicate branch). I pushed the same reviewed head back: 3bd06a7. The receipt above is on this exact SHA. I took ready-to-land off and put it back after the re-push. #29995 makes the same one-line change. Whichever PR lands first makes the other empty. |
|
Found 1 test failure on Blacksmith runners: Failure
|
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
Base red fix (priority zero).
clippy -D warningsrefuses.map(|path| length(path))atcmux-tui/crates/acpmux/src/hub/processes.rs:256(clippy::redundant_closure, from 704abda). That failsclippy (changed cmux-tui packages)on every PR that touches a crate that depends on acpmux. Other branches hit it too (QUIT P0's holder2 proof 6298c55e). This passes the function by reference:.map(&length). The behavior does not change.Command:
scripts/ci/cmux-tui-rust-check.sh clippyon the fleet.Base 05f7dc9 (red): Linux e926c1b3c85f52aa42b3ceca (https://github.com/manaflow-ai/cmuxterm-hq/actions/runs/41265354797):
error: redundant closure --> crates/acpmux/src/hub/processes.rs:256:71,could not compile acpmux, RED. macOS 62f454b7855512fbf139701e (aws-m4pro-6): the sameredundant closureerror at processes.rs:256:71, RED.Head 3bd06a7 (green): Linux 1f0346de6fdaff4d3108b119 (https://github.com/manaflow-ai/cmuxterm-hq/actions/runs/41265354780): clippy
-D warningson the workspace, green. macOS 7c7beddd0240e1cba28c2b05 (aws-m4pro-3): green.Head 3bd06a7, full step: job 08b7447166f7ff2e95a126d1 (https://github.com/manaflow-ai/cmuxterm-hq/actions/runs/41265127942): fmt pass, clippy
-D warningspass,a_process_list_reads_output_metadata_after_releasing_its_table(the test that callsprocess_values) 1/1 pass, 0 flaky.Observed / Not run
lengthisimpl Fn(&str) -> u64, and&lengthisFn(&str) -> u64, soOption<&str>::map(&length)gives the sameOption<u64>.Changelog
none