Skip to content

test: remove needless hash borrow - #1168

Merged
DaniPopes merged 1 commit into
mainfrom
centaur/fix-clippy-needless-borrow-1787603772
Aug 24, 2026
Merged

DaniPopes merged 1 commit into
mainfrom
centaur/fix-clippy-needless-borrow-1787603772

Conversation

@decofe

@decofe decofe commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Motivation

The Clippy CI job on main fails on clippy::needless_borrows_for_generic_args in the fixed-bytes hasher test.

Solution

Pass FixedBytes::<N>::ZERO directly to hash_one, as suggested by Clippy.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Prompted by: @DaniPopes

@github-project-automation github-project-automation Bot moved this to Reviewed in Alloy Aug 24, 2026
@DaniPopes
DaniPopes enabled auto-merge (squash) August 24, 2026 20:44
@DaniPopes
DaniPopes disabled auto-merge August 24, 2026 20:45
@DaniPopes DaniPopes changed the title fix(primitives): remove needless hash borrow test: remove needless hash borrow Aug 24, 2026
@DaniPopes
DaniPopes enabled auto-merge (squash) August 24, 2026 20:45
@DaniPopes
DaniPopes merged commit 8b8e772 into main Aug 24, 2026
31 checks passed
@DaniPopes
DaniPopes deleted the centaur/fix-clippy-needless-borrow-1787603772 branch August 24, 2026 20:49
@github-project-automation github-project-automation Bot moved this from Reviewed to Done in Alloy Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants