Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(blake2): remove redundant clone on Copy type#792

Open
sashass1315 wants to merge 1 commit into
RustCrypto:master from
sashass1315:blake2/remove-redundant-clone
Open

fix(blake2): remove redundant clone on Copy type #792
sashass1315 wants to merge 1 commit into
RustCrypto:master from
sashass1315:blake2/remove-redundant-clone

Conversation

@sashass1315

@sashass1315 sashass1315 commented Feb 22, 2026

Copy link
Copy Markdown

The h variable is [$vec; 2] where $vec (u32x4/u64x4) implements Copy. Calling .clone() on a Copy type is redundant since it's semantically equivalent to a simple copy. The same pattern is already used correctly in the Reset impl where self.h0 is assigned directly without .clone().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /