Skip to content

style(fhir-validator): satisfy rustfmt in the editor tests (unbreak main) - #587

Merged
smunini merged 1 commit into
mainfrom
fix/editor-rustfmt-main
Aug 19, 2026
Merged

style(fhir-validator): satisfy rustfmt in the editor tests (unbreak main)#587
smunini merged 1 commit into
mainfrom
fix/editor-rustfmt-main

Conversation

@smunini

@smunini smunini commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

main is currently red. The Linting job fails at its first step, cargo fmt --all -- --check, and has since 9636888 (the #573 merge) — see run 32282460213.

Because formatting is the first step, clippy never runs on main right now, and every branch cut from main inherits the failure. #585 hit exactly this.

The cause

Three set_value calls in editor.rs's #[cfg(test)] module sit just over rustfmt's default fn_call_width of 60, so rustfmt wants them exploded one-argument-per-line and --check fails on the difference:

set_value(resolver, "Patient", &mut patient, &path_from_string("active"), "true");

The change

rustfmt applied to that file, nothing else. Whitespace only, entirely inside the test module — no behavior change.

Verification

  • cargo fmt --all -- --check — clean across the workspace
  • cargo test -p helios-fhir-validator --all-features — all pass, 0 failures

Note the same three hunks are also in #585, which had to carry the fix to get its own Linting job past this step. Whichever lands first, the other side resolves as an identical no-op.

Three `set_value` calls in the `#[cfg(test)]` module exceed rustfmt's
default fn_call_width (60) and were left on one line, so
`cargo fmt --all -- --check` fails. This has been breaking main's
Linting job since 9636888 (#573), which takes every branch cut from
main red with it.

Whitespace only, confined to tests; no behavior change.

Claude-Session: https://claude.ai/code/session_0197k7pHRnRPd2TaDjibNSDJ
@smunini
smunini merged commit 582619b into main Aug 19, 2026
4 checks passed
@smunini
smunini deleted the fix/editor-rustfmt-main branch August 19, 2026 18:52
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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