ci: add cargo fmt check to CI#158
Conversation
🤖 Kimi Code ReviewReview SummaryThis PR primarily consists of formatting changes ( Issues FoundNone. The changes are all formatting-related and don't introduce any bugs or performance issues. Positive Changes
Minor Observations
The PR is ready to merge as-is. Automated review by Kimi (Moonshot AI) · custom prompt |
🤖 Codex Code ReviewNo blocking findings. I reviewed the diff with focus on actor lifecycle, message flow, cancellation/shutdown, concurrency safety, and performance. The Rust code changes are formatting/import-order only (no behavioral deltas in actor runtime, timers, stream handling, or macros), and the only functional change is adding a Residual risk: I did not execute the test suite in this review pass. Automated review by OpenAI Codex · custom prompt |
Greptile SummaryThis PR adds a
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| .github/workflows/ci.yml | Adds a new fmt CI job that runs cargo fmt --all -- --check independently (no needs dependency), consistent with the rest of the workflow which relies on GitHub Actions' default Rust toolchain. |
| concurrency/src/tasks/actor.rs | Pure formatting changes: line wrapping of long function signatures, struct initializations, and chained method calls. No logic changes. |
| macros/src/lib.rs | Pure formatting changes: struct destructure patterns, chained method calls, and long conditional expressions reformatted across multiple lines. No logic changes. |
| concurrency/src/threads/actor.rs | Pure formatting changes: MessageEnvelope struct initialization inlined and Message impls expanded to multi-line. No logic changes. |
| concurrency/src/response.rs | Formatting only: collapsed unnecessary block braces in a match arm for ResponseState::Ready. Logic is unchanged. |
| rt/src/threads/oneshot.rs | Formatting only: alphabetically sorted the pub use import list (Receiver moved before RecvTimeoutError). No functional change. |
| rt/src/threads/mod.rs | Formatting only: collapsed a multi-line method chain in ctrl_c() into a single line. No functional change. |
| concurrency/src/threads/time.rs | Formatting only: reformatted a closure body passed to rt::spawn by lifting the match out of a block. No functional change. |
| concurrency/src/registry.rs | Formatting only: split a long function signature across multiple lines. No functional change. |
| examples/bank/src/server.rs | Formatting only: reordered imports alphabetically and collapsed a match arm's unnecessary block braces. No functional change. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
PR[Pull Request / Push to main] --> BUILD[build\nubuntu-latest\ncargo build --verbose]
PR --> FMT[fmt\nubuntu-latest\ncargo fmt --all -- --check]
BUILD --> TEST[test\nubuntu-latest\ncargo test --verbose]
BUILD --> CLIPPY[clippy\nubuntu-latest\ncargo clippy --all-targets]
BUILD --> PUBLISH[publish-dry-run\nubuntu-latest\ncargo package]
style FMT fill:#c8f7c5,stroke:#27ae60,color:#000
Last reviewed commit: 3b32daa
|
/claude |
🤖 Claude Code ReviewPR #158 Review —
|
Summary
cargo fmt --all -- --checkjob to CI workflowTest plan