Skip to content

test: fix clippy - #3

Merged
tvanderstad merged 1 commit into
lockbookfrom
fix/clippy-as-chunks
Nov 27, 2026
Merged

tvanderstad merged 1 commit into
lockbookfrom
fix/clippy-as-chunks

Conversation

@tvanderstad

Copy link
Copy Markdown

Clippy on newer stable Rust flags chunks_exact with a constant chunk size (clippy::chunks_exact_to_as_chunks), which fails CI's Check clippy, formatting, and documentation job under -Dwarnings in crates/mitex/tests/cvt/testset.rs.

This switches the two chunks_exact calls in sha256_hex to as_chunks::<64>().0 and as_chunks::<4>().0 (removing the unnecessary try_into().unwrap()), getting CI back to green.

Verified with:

  • RUSTFLAGS="-Dwarnings" cargo clippy --workspace --all-targets --all-features
  • cargo fmt --check --all
  • RUSTDOCFLAGS="-Dwarnings" cargo doc --workspace --no-deps
  • cargo test -p mitex --no-fail-fast --features mitex-spec-gen/prebuilt

Clippy in Rust 1.98 flags chunks_exact with a constant size
(chunks_exact_to_as_chunks), which fails CI's clippy job under -Dwarnings.
@tvanderstad
tvanderstad merged commit e01600e into lockbook Nov 27, 2026
7 checks passed
@tvanderstad tvanderstad changed the title test: use as_chunks in the testset SHA-256 helper test: fix clippy Nov 27, 2026
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