Skip to content

style: format the codebase and clear clippy -D warnings#30

Merged
pszymkowiak merged 2 commits into
developfrom
style/fmt-and-clippy-clean
Jun 14, 2026
Merged

style: format the codebase and clear clippy -D warnings#30
pszymkowiak merged 2 commits into
developfrom
style/fmt-and-clippy-clean

Conversation

@pszymkowiak

Copy link
Copy Markdown
Contributor

Makes the CI green. The Check formatting and Clippy gates were red on master because the existing code was never run through rustfmt and carried three clippy warnings — pre-existing/inherited, they failed even on PRs with no Rust changes.

  • cargo fmt --all over the whole tree (pure formatting, no behavior change).
  • cmd_claim: #[allow(clippy::too_many_arguments)] (the 9 args are the CLI flag set).
  • cmd_claim deps loop: if let Ok(..) instead of match with an empty Err arm.
  • list_queue: extract the 5-tuple into a QueueRow type alias.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings ✅ (0 warnings)
  • cargo test ✅ 77 passing

First PR through the new flow → targets develop (also exercises ci.yml on develop and pr-target-check).

🤖 Generated with Claude Code

pszymkowiak and others added 2 commits June 14, 2026 23:07
The CI `Check formatting` and `Clippy` gates were red on master because the
existing code was never run through rustfmt and carried three clippy warnings
(pre-existing, inherited — they failed even on PRs with no Rust changes).

- `cargo fmt --all` over the whole tree (pure formatting, no behavior change).
- cmd_claim: allow clippy::too_many_arguments (the 9 args are the CLI flag set).
- cmd_claim deps loop: `if let Ok(..)` instead of `match` with an empty Err arm.
- list_queue: extract the 5-tuple into a `QueueRow` type alias.

`cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`, and the test
suite (77) all pass, so the CI gate goes green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
grit's notification room uses Unix domain sockets (std::os::unix::net in
src/room/mod.rs and the `grit watch` path), so it does not compile on Windows.
The build was already broken there; the CI only ever failed earlier at the
formatting step, which masked it. Treat grit as Unix/macOS-only for now:

- ci.yml: remove the windows-latest matrix entry.
- release.yml: remove the x86_64-pc-windows-msvc target.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pszymkowiak pszymkowiak merged commit 4d7007f into develop Jun 14, 2026
2 checks passed
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