Skip to content

fix clippy lints surfaced by Rust 1.98 - #276

Merged
lukevalenta merged 1 commit into
mainfrom
lvalenta/fix-chunks-exact-lint
Aug 20, 2026
Merged

fix clippy lints surfaced by Rust 1.98#276
lukevalenta merged 1 commit into
mainfrom
lvalenta/fix-chunks-exact-lint

Conversation

@lukevalenta

Copy link
Copy Markdown
Contributor

CI runs clippy from the latest stable (rustup update stable), which advanced to 1.98 and started failing the required cargo clippy -- -D warnings job on pre-existing code.

  • tlog_tiles_wasm (required lint): slice::as_chunks::<32>() instead of chunks_exact(32) (chunks_exact_to_as_chunks), which also drops the try_into().unwrap().
  • tlog_tiles (pedantic): u64::isolate_lowest_one() in a test (manual_isolate_lowest_one).
  • generic_log_worker (pedantic): #![allow(clippy::unused_async_trait_impl)] on the test storage backends, whose async fn trait signatures require the impls stay async even without an await.

Verified locally on 1.98: cargo clippy -- -D warnings, workspace -Dclippy::pedantic, cargo test, cargo fmt --all --check, and cargo shear all pass.

CI runs clippy from the latest stable, which advanced to 1.98 and added
new lints:

- tlog_tiles_wasm: use slice::as_chunks instead of chunks_exact with a
  const size (chunks_exact_to_as_chunks), dropping the try_into unwrap.
- tlog_tiles: use u64::isolate_lowest_one in a test
  (manual_isolate_lowest_one).
- generic_log_worker: allow unused_async_trait_impl on the test storage
  backends, whose async trait signatures require the impls stay async
  even without an await.
@lukevalenta lukevalenta self-assigned this Aug 20, 2026
@lukevalenta
lukevalenta merged commit 34f9993 into main Aug 20, 2026
7 checks passed
@lukevalenta
lukevalenta deleted the lvalenta/fix-chunks-exact-lint branch August 20, 2026 21:10
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