Skip to content

chore: unblock CI on this branch — rustfmt, catalog drift, clippy - #7

Merged
ymote merged 4 commits into
l0-visualisationsfrom
chore/fmt-media-host
Aug 30, 2026
Merged

ymote merged 4 commits into
l0-visualisationsfrom
chore/fmt-media-host

Conversation

@ymote

@ymote ymote commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

cargo fmt --check is the first step of CI, so this one unformatted file fails every job on the branch — including PRs that touch nothing near it (e.g. #6, which is confined to splash-ui-l0).

Formatting only. cargo check -p splash-media-host clean, no behaviour change.

Verified locally that cargo fmt --check -p splash-media-host reports the same line numbers CI does (237, 326, 359, 381, 442, 464 …), so the local toolchain agrees with the runner's.

🤖 Generated with Claude Code

ymote and others added 3 commits August 29, 2026 22:50
`cargo fmt --check` is the first step of CI, so this one unformatted file has
been failing every job on the branch — including PRs that touch nothing near it.
Formatting only, no behaviour change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Same reason as the previous commit: `cargo fmt --check` gates every other CI
step, and two crates were carrying formatting debt that failed jobs touching
neither. Formatting only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ear clippy

Three things standing between this branch and a green CI, none of them related
to each other beyond blocking every job.

`sys.wiki` was added to the Rust catalog without an entry in
`ui-l0-constructors.toml`, so the spec and the code disagreed about what sources
exist. Documented.

Its vocabulary offered `thumbnail`, and no lowering answered it: the page-summary
endpoint returns that as a nested object (`thumbnail.source`) while every
lowering here reads a single flat field. A card asking for `d.thumbnail` got an
em dash with nothing able to warn it — which is precisely the failure
`every_offered_field_has_a_translation` exists to catch. The field is withdrawn
rather than half-answered; adding it back needs a nested-path lowering first.

Two clippy warnings cleared, because CI runs it with `-D warnings` and fmt was
short-circuiting before it ever got there.

263 passed, 0 failed, 0 clippy warnings, 0 fmt diffs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ymote ymote changed the title chore(media-host): rustfmt chore: unblock CI on this branch — rustfmt, catalog drift, clippy Aug 30, 2026
CI pins nothing — `dtolnay/rust-toolchain@stable` — so a new clippy release
fails the branch without a line of code changing. 1.98 added
`chunks_exact_to_as_chunks` and tightened `field_reassign_with_default`, and
`-D warnings` turns both into build failures.

Three `chunks_exact(N)` call sites become `as_chunks::<N>().0`, which is what
the compiler itself suggests and is semantically identical — both drop the
same remainder, and every one of these indexes into the chunk, which a
fixed-size array still supports. One `ExecutionLimits` built by assignment
becomes a struct literal with `..Default::default()`.

Verified against the toolchain CI actually uses, not the one that happened to
be installed locally — which is how this went unnoticed: 1.95 does not have
these lints, so the branch looked clean and CI did not.

  cargo +1.98 fmt --check                     0 diffs
  cargo +1.98 clippy --workspace -D warnings  clean
  cargo +1.98 test --workspace                1013 passed, 0 failed

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ymote
ymote merged commit 1c0b83a into l0-visualisations Aug 30, 2026
8 checks passed
@ymote
ymote deleted the chore/fmt-media-host branch August 30, 2026 06:06
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