Skip to content

Fix remaining clippy 1.97 lints (lash-cli, lash-tui) - #22

Merged
fohara merged 1 commit into
mainfrom
fix/ci-clippy-197-round2
Jul 14, 2026
Merged

fohara merged 1 commit into
mainfrom
fix/ci-clippy-197-round2

Conversation

@fohara

@fohara fohara commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #21. CI's stable clippy is now 1.97, which stops at the first crate with a lint, so #21 only cleared lash-types; the run then failed in lash-tui/lash-cli. Ran clippy 1.97 locally with --keep-going to surface everything at once:

  • useless_borrows_in_formatting — dropped the redundant & in format!("#{}", label.name) (filter_modal) and an eprintln! arg (lash-tui integration test).
  • assert! with an equality comparison — switched three test asserts to assert_eq!/assert_ne! (check_links core, file_discovery).

Verified: cargo +stable clippy --workspace --all-targets -- -D warnings (rustc 1.97.0) is clean, cargo fmt --all --check clean.

🤖 Generated with Claude Code

CI's stable clippy (1.97) flags useless_borrows_in_formatting and
assert!-with-equality across tests and a TUI format! call that older
clippy did not. Drop the redundant & in two format args and switch three
assert!(a == b)/(a != b) test lines to assert_eq!/assert_ne!.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fohara
fohara merged commit 8129d27 into main Jul 14, 2026
15 checks passed
@fohara
fohara deleted the fix/ci-clippy-197-round2 branch July 14, 2026 15:11
fohara added a commit that referenced this pull request Aug 6, 2026
CI's stable clippy (1.97) flags useless_borrows_in_formatting and
assert!-with-equality across tests and a TUI format! call that older
clippy did not. Drop the redundant & in two format args and switch three
assert!(a == b)/(a != b) test lines to assert_eq!/assert_ne!.
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