Skip to content

style: rustfmt batch.rs (unbreak main's fmt check)#225

Merged
smunini merged 1 commit into
mainfrom
style/rustfmt-batch-handler
Jul 8, 2026
Merged

style: rustfmt batch.rs (unbreak main's fmt check)#225
smunini merged 1 commit into
mainfrom
style/rustfmt-batch-handler

Conversation

@mauripunzueta

Copy link
Copy Markdown
Contributor

main (0b87bc1) currently fails cargo fmt --all -- --check at crates/rest/src/handlers/batch.rs:1213 — a TransactionError::Timeout { timeout_ms: 1500 } constructor that rustfmt collapses onto one line. It slipped in via 3f1203f (observability test coverage).

Because PR CI lints branch-merged-with-main, this ambient violation currently fails the Linting job on every open PR (surfaced while working on #219). This is a formatting-only change — one hunk, no behavior change — to unblock main and all open PRs.

-        let (_, _, msg) = transaction_error_response_parts(&TransactionError::Timeout {
-            timeout_ms: 1500,
-        });
+        let (_, _, msg) =
+            transaction_error_response_parts(&TransactionError::Timeout { timeout_ms: 1500 });

main is currently red on `cargo fmt --all -- --check` at
crates/rest/src/handlers/batch.rs:1213 (a `Timeout { timeout_ms }`
constructor rustfmt collapses to one line). Because PR CI lints the
branch merged with main, this ambient violation fails Linting on every
open PR. Formatting-only, no behavior change.
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@smunini smunini merged commit 532b472 into main Jul 8, 2026
20 checks passed
@smunini smunini deleted the style/rustfmt-batch-handler branch July 8, 2026 19:15
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.

2 participants