Skip to content

style(validation): fix the two rustfmt diffs failing CI - #32

Merged
mwaddip merged 1 commit into
mainfrom
fix/rustfmt-sections
Sep 28, 2026
Merged

mwaddip merged 1 commit into
mainfrom
fix/rustfmt-sections

Conversation

@mwaddip

@mwaddip mwaddip commented Sep 28, 2026

Copy link
Copy Markdown
Owner

The fmt workflow has failed on main since v0.8.3. In two tests in validation/src/sections.rs, a comment line directly follows a trailing `// header_id` comment, and rustfmt indents it to the trailing comment's column. A blank line after the `// header_id` line fixes both. Checked: `cargo fmt --all --check` is clean, and the validation unit tests pass.

🤖 Generated with Claude Code

…comment

rustfmt treats a comment line that directly follows a trailing comment as its
continuation and indents it to the trailing comment's column, so `cargo fmt
--check` has failed on these two tests since 5b8e6f3. A blank line after the
`// header_id` line keeps each comment attached to the code below it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mwaddip
mwaddip merged commit d4d1f4c into main Sep 28, 2026
1 check 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