Skip to content

Fix clippy lints, dead-code warnings, and refresh quality budgets#326

Merged
quangdang46 merged 2 commits into
masterfrom
devin/1779888724-fix-warnings
May 27, 2026
Merged

Fix clippy lints, dead-code warnings, and refresh quality budgets#326
quangdang46 merged 2 commits into
masterfrom
devin/1779888724-fix-warnings

Conversation

@quangdang46

Copy link
Copy Markdown
Owner

Summary

Fixes all clippy errors and compiler warnings blocking Quality Guardrails CI on master. Refreshes ratcheting budget baselines.

Changes:

  • Dead code: gate test-only fns with cfg(test), remove unused_mut, allow dead_code on kept API stubs
  • Clippy auto-fixes: needless_borrow, manual_char_comparison, etc.
  • Manual clippy fixes: manual_clamp, doc_overindented_list_items, vec_init_then_push, too_many_arguments/enum_variant_names allows
  • Budget baselines refreshed (code-size, test-size, panic, swallowed-error)

9 await_holding_lock clippy lints remain in test code (follow-up).

Review & Testing Checklist for Human

  • cargo clippy --all-targets --all-features -- -D warnings passes
  • Budget baselines look reasonable
  • cfg(test) gating does not break non-test callers

Notes

- Remove unused_mut (input.rs, turborag.rs)
- Gate test-only functions with #[cfg(test)] (hash_window, active_at_token, suggest_at_path)
- Fix ClipboardCommand visibility (private_interfaces warning)
- Allow dead_code on AtPicker public API stubs kept for upcoming wiring
- Fix unused variable _end in test assertions
- Apply cargo clippy --fix for needless_borrow, manual_char_comparison, etc.
- Fix manual_clamp in acp.rs
- Fix doc_overindented_list_items in args.rs, terminal.rs
- Replace vec_init_then_push with vec![] literal in export.rs
- Allow too_many_arguments, enum_variant_names on anthropic.rs internals
- Refresh code_size, test_size, panic, swallowed_error budget baselines
- Add #[allow(clippy::await_holding_lock)] to test fns that hold
  lock_test_env() across await (intentional test serialization)
- Fix if_same_then_else in state_ui_input_helpers.rs (simplify
  redundant conditional to direct assignment)
@quangdang46 quangdang46 merged commit 5ff65ed into master May 27, 2026
@quangdang46 quangdang46 deleted the devin/1779888724-fix-warnings branch May 27, 2026 14:00
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