Skip to content

Issue #989: clippy 1.99, fill_box reads its buffer with as_chunks::<3>() (item 4) - #997

Merged
echelon merged 1 commit into
storytold:mainfrom
snofla:claude/fix-clippy-1-99-spots-as-chunks
Oct 13, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
snofla:claude/fix-clippy-1-99-spots-as-chunks

Conversation

@snofla

@snofla snofla commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Part of #989 (item 4 only; this PR does not close the issue).

cargo clippy --workspace --all-targets -- -D warnings on rustc 1.99.0 stops at crates/pipeline/src/spots.rs:250 with clippy::chunks_exact_to_as_chunks ("using chunks_exact with a constant chunk size"). The line came in with fe6d7b01 (Content-aware Remove). The fix reads the flat buffer with as_chunks::<3>(), as #414 did for 1.98:

let (pixels, _) = out.as_chunks::<3>();
for (d, v) in src.iter_mut().zip(pixels) {
    *d = *v;
}

Checked

  • Same behaviour: as_chunks::<3>() yields the same elements as chunks_exact(3) and ignores the same remainder. Compared on buffer lengths 0-9 in a scratch file, including lengths that are not a multiple of 3.
  • Tests: the 13 spots tests in lightcraft-pipeline pass, including fill_rebuilds_structure_deterministically and fill_matches_between_preview_and_export_size, which run fill_box.
  • Lint gone: cargo clippy --workspace --exclude lightcraft --all-targets -- -D warnings exits 0 (rustc 1.99.0, macOS, Apple silicon). cargo fmt --all --check is clean. It is the only constant-size chunks_exact in the workspace.

Not in this PR

🤖 Generated with Claude Code

…(clippy 1.99 chunks_exact_to_as_chunks)

Item 4 of storytold#989. Same elements and the same ignored remainder as chunks_exact(3),
checked on lengths 0-9 in a scratch file; the 13 spots tests pass and clippy over
the workspace without the desktop app package is clean under -D warnings. Items
1-3 of storytold#989 (the macOS app build, the /bin/true lock test, eleven engine tests)
are not touched here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
snofla added a commit to snofla/lightcraft that referenced this pull request Oct 11, 2026
…: clippy 1.99, fill_box uses as_chunks (storytold#989 item 4))

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@echelon
echelon merged commit a1035f1 into storytold:main Oct 13, 2026
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Landed on main in #1426 — thank you, @snofla, for the contribution! If you haven't already, come join us on Discord: https://discord.gg/artcraft

ArekatlaNishanthchowdary pushed a commit to ArekatlaNishanthchowdary/lightcraft that referenced this pull request Oct 13, 2026
AlexChambers added a commit to AlexChambers/lightcraft that referenced this pull request Oct 13, 2026
Register supported image types as alternate handlers and queue native
Open Documents events until the library is ready. Reuse add-mode imports
and select the result in Detail, including existing photos.

Add routing and plist tests, document native verification, and update
the parity checklist. Tests used temporary storytold#990 and storytold#997 fixes; neither
fix is included. CI found the 12 known failures only.

Co-Authored-By: Codex <noreply@openai.com>
AlexChambers added a commit to AlexChambers/lightcraft that referenced this pull request Oct 13, 2026
Detach cancelled native Add imports and discard buffered and late results.
Give queued requests cancellable activity rows and warn before quitting
with opened files still waiting. Translate the new messages in every locale.

Reference system AVIF and JPEG XL types without redeclaring them. Keep
X3F and KDC fallbacks, document the policy, and audit CoreTypes tags.

Add regressions that fail on round 2 and verify native cancellation and
quit choices. CI found only the 12 known failures. Temporary storytold#990 and
storytold#997 build fixes are not included.

Co-Authored-By: Codex <noreply@openai.com>
AlexChambers added a commit to AlexChambers/lightcraft that referenced this pull request Oct 14, 2026
Register supported image types as alternate handlers and queue native
Open Documents events until the library is ready. Reuse add-mode imports
and select the result in Detail, including existing photos.

Add routing and plist tests, document native verification, and update
the parity checklist. Tests used temporary storytold#990 and storytold#997 fixes; neither
fix is included. CI found the 12 known failures only.

Co-Authored-By: Codex <noreply@openai.com>
AlexChambers added a commit to AlexChambers/lightcraft that referenced this pull request Oct 15, 2026
Register supported image types as alternate handlers and queue native
Open Documents events until the library is ready. Reuse add-mode imports
and select the result in Detail, including existing photos.

Add routing and plist tests, document native verification, and update
the parity checklist. Tests used temporary storytold#990 and storytold#997 fixes; neither
fix is included. CI found the 12 known failures only.

Co-Authored-By: Codex <noreply@openai.com>
AlexChambers added a commit to AlexChambers/lightcraft that referenced this pull request Oct 15, 2026
Register supported image types as alternate handlers and queue native
Open Documents events until the library is ready. Reuse add-mode imports
and select the result in Detail, including existing photos.

Add routing and plist tests, document native verification, and update
the parity checklist. Tests used temporary storytold#990 and storytold#997 fixes; neither
fix is included. CI found the 12 known failures only.

Co-Authored-By: Codex <noreply@openai.com>
AlexChambers added a commit to AlexChambers/lightcraft that referenced this pull request Oct 28, 2026
Register supported image types as alternate handlers and queue native
Open Documents events until the library is ready. Reuse add-mode imports
and select the result in Detail, including existing photos.

Add routing and plist tests, document native verification, and update
the parity checklist. Tests used temporary storytold#990 and storytold#997 fixes; neither
fix is included. CI found the 12 known failures only.

Co-Authored-By: Codex <noreply@openai.com>
clydecbrown pushed a commit to clydecbrown/lightcraft that referenced this pull request Nov 10, 2026
Import tab: resizable Folders panel; loupe zooms on click and shows no mask note
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