Skip to content

style: apply cargo fmt to unblock test job#27

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/cargo-fmt
May 14, 2026
Merged

style: apply cargo fmt to unblock test job#27
hyperpolymath merged 2 commits into
mainfrom
fix/cargo-fmt

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Why

cargo fmt --check is failing in the test job of rust-ci.yml, which blocks every Dependabot PR. RUSTFLAGS=-Dwarnings + fmt-check-strict means the workflow rejects any unformatted code.

What

Replays the exact rustfmt output captured from the failing CI log on PR #22. Five reformats:

  • src/lib.rs:77ImagePair::new() signature wrapped
  • src/lib.rs:138partition_pairs() signature + return tuple wrapped
  • tests/smoke_test.rs:75assert_eq!() wrapped
  • tests/smoke_test.rs:213matches!() wrapped
  • tests/smoke_test.rs:236.map(|i| ImagePair::new(...)) wrapped to multi-line block

No semantic changes; only whitespace.

Verify

The test job's cargo fmt --check step should now pass. If rustfmt picks up any additional whitespace differences I missed, CI will tell us and we iterate.

hyperpolymath and others added 2 commits May 14, 2026 14:57
Formatting changes that `cargo fmt --check` was failing on under the test job, blocking every Dependabot PR. Replays the exact output of rustfmt as captured from the failing CI log; no semantic changes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Formatting changes that `cargo fmt --check` was failing on under the test job, blocking every Dependabot PR. Replays the exact output of rustfmt as captured from the failing CI log; no semantic changes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@hyperpolymath hyperpolymath merged commit 430220b into main May 14, 2026
16 of 23 checks passed
@hyperpolymath hyperpolymath deleted the fix/cargo-fmt branch May 14, 2026 20:50
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