Skip to content

Apply cargo +nightly fmt to fix CI format check#419

Merged
trypsynth merged 1 commit intotrypsynth:masterfrom
danielw97:fix/rustfmt-nightly
Apr 20, 2026
Merged

Apply cargo +nightly fmt to fix CI format check#419
trypsynth merged 1 commit intotrypsynth:masterfrom
danielw97:fix/rustfmt-nightly

Conversation

@danielw97
Copy link
Copy Markdown
Contributor

Summary

The CI Format check job (cargo +nightly fmt --check) has been failing on master since commits c2d7b35 (readability options) and 068ea5e (format and new strings) landed on Apr 8. The recent bitflags dependabot PR (#415) just happened to surface it again because CI re-ran on that commit.

This PR applies cargo +nightly fmt to bring the two affected files back in line with rustfmt.toml. Purely mechanical — no behavior changes.

Affected files:

  • src/ui/dialogs.rs — collapse 4 multi-line let declarations to single lines (rustfmt.toml uses use_small_heuristics = "Max" with max_width = 120, so these fit on one line)
  • src/ui/document_manager.rs — alphabetize one import list, merge two separate UI::... imports into one grouped form, collapse a multi-line SendMessageW(...) call

Verified locally with cargo +nightly fmt --check (clean after applying).

Test plan

  • cargo +nightly fmt --check passes locally
  • CI Format check job passes on this PR
  • CI Tests and clippy job still passes (no logic changed, so expected)

The CI format check job (cargo +nightly fmt --check) has been failing on
master since the readability options commits landed. This commit applies
the formatter so the check passes again. Purely mechanical — no logic
changes. Affected files: src/ui/dialogs.rs, src/ui/document_manager.rs.
@trypsynth trypsynth merged commit 227c72f into trypsynth:master Apr 20, 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.

2 participants