Skip to content

fix(lint): resolve clippy --all-targets -D warnings gate (4 findings)#932

Open
AlexMikhalev wants to merge 1 commit into
mainfrom
fix/2933-clippy-all-targets-gate
Open

fix(lint): resolve clippy --all-targets -D warnings gate (4 findings)#932
AlexMikhalev wants to merge 1 commit into
mainfrom
fix/2933-clippy-all-targets-gate

Conversation

@AlexMikhalev

Copy link
Copy Markdown
Contributor

Summary

Fixes all 4 clippy lint failures surfaced by `cargo clippy --workspace --all-targets -- -D warnings` as filed in Gitea #2933.

  • weather_report collapsible_if: collapse nested if let Some(detail) + if !detail.is_empty() into let-chain
  • merge_coordinator assertions_on_constants (×2): wrap compile-time const assertions in const { assert!(...) } blocks
  • terraphim_validation assertions_on_constants: remove dead assert!(true) from test
  • terraphim_server items_after_test_module: move build_router_for_tests before #[cfg(test)] mod tests

Test plan

  • `cargo clippy --workspace --all-targets -- -D warnings` passes clean
  • `cargo fmt --all -- --check` passes
  • `cargo test --workspace` passes (1114 tests)

Closes terraphim/terraphim-ai#2933 (Gitea)

🤖 Generated with Terraphim AI

- weather_report: collapse nested if-let/if into let-chain (collapsible_if)
- merge_coordinator: wrap const assertions in const{} blocks (assertions_on_constants)
- terraphim_validation: remove trivial assert!(true) (assertions_on_constants)
- terraphim_server: move build_router_for_tests before mod tests (items_after_test_module)

`cargo clippy --workspace --all-targets -- -D warnings` now passes clean.

Co-Authored-By: Ferrox <noreply@anthropic.com>
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