Skip to content

fix: resolve Clippy 1.94 lint errors in shell-primitives and shell-mempool#5

Merged
LucienSong merged 2 commits intomainfrom
copilot/fix-pr-review-lint-failed
Mar 23, 2026
Merged

fix: resolve Clippy 1.94 lint errors in shell-primitives and shell-mempool#5
LucienSong merged 2 commits intomainfrom
copilot/fix-pr-review-lint-failed

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Overview

Fix three Clippy 1.94 lint errors that fail the Lint Check CI job on PR #4 (-D warnings promotes these to hard errors).

  • codec.rs:207clippy::manual_is_multiple_of: % 4 != 0.is_multiple_of(4)
  • ssz.rs:62clippy::manual_div_ceil: (len + 31) / 32.div_ceil(32)
  • admission.rsclippy::derivable_impls: manual Default impl → #[derive(Default)]

Type of Change

  • Bug Fix
  • New Feature
  • Documentation Update
  • Refactor
  • Other (please specify):

Checklist

  • Code follows the project's style guidelines (cargo fmt passes)
  • No Clippy warnings (cargo clippy -- -D warnings passes)
  • Unit tests have been added or modified (cargo test passes)
  • Documentation has been updated (cargo doc --no-deps passes)
  • No sensitive information (keys, secrets, PII) is exposed
  • Commit messages follow the conventional commit format (e.g., feat:, fix:, chore:)

Related Issues

Resolves lint failures from #4

Additional Notes

All three are new lints in Clippy 1.94 that flag idiomatic stdlib alternatives to manual arithmetic patterns. Semantics are unchanged.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- codec.rs: use `.is_multiple_of(4)` instead of `% 4 != 0`
- ssz.rs: use `.div_ceil(32)` instead of `(len + 31) / 32`
- admission.rs: derive Default instead of manual impl

Co-authored-by: LucienSong <44640337+LucienSong@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ShellDAO/shell-chain/sessions/af5db72b-530b-48e9-bab9-a5fdc7f88dc6
@LucienSong LucienSong marked this pull request as ready for review March 23, 2026 02:26
@LucienSong LucienSong self-requested a review as a code owner March 23, 2026 02:26
@LucienSong LucienSong merged commit 9546445 into main Mar 23, 2026
Copilot AI changed the title [WIP] Fix PR review lint failures in pull request 4 fix: resolve Clippy 1.94 lint errors in shell-primitives and shell-mempool Mar 23, 2026
Copilot stopped work on behalf of LucienSong due to an error March 23, 2026 02:26
LucienSong added a commit to LucienSong/shell-chain that referenced this pull request Mar 25, 2026
…t-failed

[WIP] Fix PR review lint failures in pull request 4
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