fix: main's Clippy, event-code table and guide screenshot checks pass again #2698

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix-main-checks into main 2026-11-27 22:29:44 +00:00
Owner

Summary

main fails its own CI, so every pull request does. This makes three checks pass again:

  • Clippy: three needless_borrow errors in rebuild_reason (builder/crates/build-driver/src/play.rs).
  • build-driver's codes test: the builder says log_unavailable and play_notice (since #2688), which docs/dev/reference/build-events.md's table lacked.
  • Guide screenshot review: gpu/vk/device_policy.h changed in #2158, a flag the policy's log prints and no menu row reads. settings-graphics.png is retained, with the review recorded (source-review-3b699a6c.md).

Testing

Tested: on CachyOS Linux on main a396b07a (since rebased onto 3b699a6c, which changed nothing under builder/; the screenshot checks run again there): cargo fmt --all --check, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked (787 passed, 0 failed, 2 ignored), scripts/check_guide_screenshots.py --review-sources and tests/test_guide_screenshots.py pass. Not run in the game, as asked: the code change only drops borrows of a value that is already a reference. The screenshot was reviewed by reading the source change; nothing was captured.

Still to test: None.

Measurements

Nothing to measure: lint, documentation and a review record.

Risks

The code compiles to the same behaviour; a revert is enough. A player notices nothing.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary `main` fails its own CI, so every pull request does. This makes three checks pass again: - **Clippy:** three `needless_borrow` errors in `rebuild_reason` (`builder/crates/build-driver/src/play.rs`). - **`build-driver`'s `codes` test:** the builder says `log_unavailable` and `play_notice` (since #2688), which `docs/dev/reference/build-events.md`'s table lacked. - **Guide screenshot review:** `gpu/vk/device_policy.h` changed in #2158, a flag the policy's log prints and no menu row reads. `settings-graphics.png` is retained, with the review recorded (`source-review-3b699a6c.md`). ## Testing **Tested:** on CachyOS Linux on main `a396b07a` (since rebased onto `3b699a6c`, which changed nothing under `builder/`; the screenshot checks run again there): `cargo fmt --all --check`, `cargo clippy --workspace --all-targets --locked -- -D warnings`, `cargo test --workspace --locked` (787 passed, 0 failed, 2 ignored), `scripts/check_guide_screenshots.py --review-sources` and `tests/test_guide_screenshots.py` pass. Not run in the game, as asked: the code change only drops borrows of a value that is already a reference. The screenshot was reviewed by reading the source change; nothing was captured. **Still to test:** None. ## Measurements Nothing to measure: lint, documentation and a review record. ## Risks The code compiles to the same behaviour; a revert is enough. A player notices nothing. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: main's Clippy, event-code table and guide screenshot checks pass again
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 10s
CI / What the change needs (pull_request) Successful in 12s
CI / Third-party parts and guide screenshots (pull_request) Successful in 16s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m40s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m17s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 1m50s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 2m32s
CI / Website build and checks (pull_request) Successful in 3m10s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Successful in 19m41s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 28m57s
ab35f845de
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean force-pushed fix-main-checks from ab35f845de
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 10s
CI / What the change needs (pull_request) Successful in 12s
CI / Third-party parts and guide screenshots (pull_request) Successful in 16s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m40s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m17s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 1m50s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 2m32s
CI / Website build and checks (pull_request) Successful in 3m10s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Successful in 19m41s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 28m57s
to 3ee74483b6
Some checks failed
PR description / Title and description (pull_request_target) Failing after 5s
2026-11-27 22:27:33 +00:00
Compare
HumanBean changed title from WIP: fix: main's Clippy, event-code table and guide screenshot checks pass again to fix: main's Clippy, event-code table and guide screenshot checks pass again 2026-11-27 22:29:30 +00:00
HumanBean deleted branch fix-main-checks 2026-11-27 22:29:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2698
No description provided.