Skip to content

style(lib): enforce clippy::trivially_copy_pass_by_ref - #4252

Merged
cratelyn merged 1 commit into
hyperium:masterfrom
trivikr:clippy-trivially-copy-pass-by-ref
Oct 30, 2026
Merged

cratelyn merged 1 commit into
hyperium:masterfrom
trivikr:clippy-trivially-copy-pass-by-ref

Conversation

@trivikr

@trivikr trivikr commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

See #4071.

Lint doc: https://clippy.rust-lang.org/master/index.html#trivially_copy_pass_by_ref

The rule checks for functions taking arguments by reference, where the argument type is Copy and small enough to be more efficient to always pass by value.

Only four functions were flagged by this rule, where &self was changed to self.

@cratelyn cratelyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@cratelyn
cratelyn merged commit 8abd0b4 into hyperium:master Oct 30, 2026
25 checks passed
@trivikr
trivikr deleted the clippy-trivially-copy-pass-by-ref branch October 30, 2026 18:41
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