Skip to content

Fix stable Rust chunk lint - #400

Open
Alek99 wants to merge 1 commit into
mainfrom
agent/fix-392-stable-rust-chunks
Open

Fix stable Rust chunk lint#400
Alek99 wants to merge 1 commit into
mainfrom
agent/fix-392-stable-rust-chunks

Conversation

@Alek99

@Alek99 Alek99 commented Jul 31, 2026

Copy link
Copy Markdown
Member

What changed

  • Replaced fixed-width chunks_exact / chunks_exact_mut loops with as_chunks / as_chunks_mut in the Rust kernels, raster, and tile paths.
  • Preserved each call site's remainder handling and tuple width.

Why

Rust 1.96.1 enables clippy::chunks_exact_to_as_chunks, and the repository promotes warnings to errors. The floating stable CI toolchain therefore rejected the existing loops even though their behavior was correct.

Impact

The required stable-Rust Clippy gate passes again without changing the data-path semantics.

Validation

  • cargo clippy --all-targets -- -D warnings
  • cargo test — 137 passed

Fixes #392

Review in cubic

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Alek99, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6d7f119f-6e13-4d57-9639-9a1ac86676bf

📥 Commits

Reviewing files that changed from the base of the PR and between d505ef5 and 8cf48a1.

📒 Files selected for processing (3)
  • src/kernels.rs
  • src/raster.rs
  • src/tiles.rs

Comment @coderabbitai help to get the list of available commands.

@codspeed-hq

codspeed-hq Bot commented Jul 31, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 109 untouched benchmarks
⏩ 2 skipped benchmarks1


Comparing agent/fix-392-stable-rust-chunks (8cf48a1) with main (d505ef5)

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Alek99
Alek99 marked this pull request as ready for review July 31, 2026 03:58

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

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.

Clippy fails on Rust 1.96.1 due to chunks_exact_to_as_chunks

1 participant