Skip to content

chore(cli): clear clippy 1.95.0 lints and make crate fmt-clean#169

Merged
pawellisowski merged 1 commit into
mainfrom
chore/clippy-fmt-clean
May 27, 2026
Merged

chore(cli): clear clippy 1.95.0 lints and make crate fmt-clean#169
pawellisowski merged 1 commit into
mainfrom
chore/clippy-fmt-clean

Conversation

@pawellisowski
Copy link
Copy Markdown
Contributor

Summary

Housekeeping: cargo clippy --all-targets -- -D warnings and cargo fmt --all --check were failing on main under the newer toolchain (clippy 1.95.0 / current rustfmt) — pre-existing, unrelated to any one feature. Both pass now.

Clippy fixes

  • commands/key.rs — collapse nested if into a let-chain (collapsible_if)
  • receipt.rs — drop redundant trim() before split_whitespace() (×2); drop unnecessary to_string() before with_extension (&str already AsRef<OsStr>)
  • main.rs — box the large Build subcommand variant (large_enum_variant); supported by the locked clap version
  • manifest/agent.rs (test) — iterate map.values() instead of (_, v) (for_kv_map)

Formatting

  • repo-wide cargo fmt --all

No behavior change. 502 tests pass; clippy + fmt clean.

Review

  • Codex reviewed (codex exec review --base main): no actionable regressions.

Test plan

  • cargo clippy --all-targets -- -D warnings — clean
  • cargo fmt --all --check — clean
  • cargo test — 502 passed, 0 failed

Pre-existing failures under the newer toolchain (clippy 1.95.0 / current
rustfmt), unrelated to any one feature — `cargo clippy --all-targets -- -D
warnings` and `cargo fmt --all --check` both pass now:

- key.rs: collapse nested if into a let-chain (collapsible_if)
- receipt.rs: drop redundant trim() before split_whitespace (x2);
  drop unnecessary to_string() before with_extension (&str is AsRef<OsStr>)
- main.rs: box the large `Build` subcommand variant (large_enum_variant)
- agent.rs (test): iterate map values() instead of (_, v) (for_kv_map)
- repo-wide `cargo fmt --all`

No behavior change. 502 tests pass.
@pawellisowski pawellisowski merged commit 746ecd0 into main May 27, 2026
@pawellisowski pawellisowski deleted the chore/clippy-fmt-clean branch May 27, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant