fix: clippy single_match in heph-tui + add clippy pre-commit hook
All checks were successful
Build / validate (push) Successful in 9m35s

CI on main failed on a clippy::single_match lint in the heph-tui sidebar
key handler. Rewrite as `if let`. Also add a `cargo clippy -D warnings`
prek hook mirroring cargo-fmt, so lints are caught locally before CI
(prek previously only ran cargo fmt).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-06-03 20:53:50 -07:00
commit 6ddc9b83bf
4 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1 @@
Add a `cargo clippy -D warnings` pre-commit hook so lints are caught locally before CI.

View file

@ -0,0 +1 @@
Fix `clippy::single_match` lint in heph-tui sidebar key handling (CI failure on main).