Skip to content

fix: clippy errors#29

Merged
Tom Plant (pl4nty) merged 2 commits into
mainfrom
claude/clippy-errors-cddh5o
Jul 10, 2026
Merged

fix: clippy errors#29
Tom Plant (pl4nty) merged 2 commits into
mainfrom
claude/clippy-errors-cddh5o

Conversation

@pl4nty

Copy link
Copy Markdown
Member

Summary

Fixes all clippy errors and warnings reported by cargo clippy --all-targets (Rust 1.95).

  • clippy::unused_io_amount (errors) in section_reader.rs tests — replaced read with read_exact, slicing the buffer to the expected length where it was larger than the section.
  • Unused import — removed std::mem::offset_of from the footer.rs test module (the constant it backs is used, but the macro isn't referenced directly in tests).
  • clippy::unusual_byte_groupings — normalized the octal literal 0o1200_00 to 0o120_000 in git_file_mode.rs.
  • clippy::useless_vec — replaced a vec! with an array literal in a zip.rs test.

Verification

cargo clippy --all-targets now finishes clean with no errors or warnings.


Generated by Claude Code

Fix `clippy::unused_io_amount` errors in section_reader tests by using
`read_exact`, remove an unused `offset_of` import, normalize an octal
literal's digit grouping, and replace a `vec!` with an array in a test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VC2LkJTssLYaiHRzz23Kep
Remove redundant references in a format! argument in remove_version.rs,
flagged by clippy::useless_borrows_in_formatting on the CI toolchain.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VC2LkJTssLYaiHRzz23Kep
@pl4nty Tom Plant (pl4nty) marked this pull request as ready for review July 10, 2026 08:25
@pl4nty Tom Plant (pl4nty) changed the title Fix clippy errors and warnings fix: clippy errors Jul 10, 2026
@pl4nty Tom Plant (pl4nty) merged commit a61e6c7 into main Jul 10, 2026
14 checks passed
@pl4nty Tom Plant (pl4nty) deleted the claude/clippy-errors-cddh5o branch July 10, 2026 08:26
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