Skip to content

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

Open
trivikr wants to merge 1 commit into
hyperium:masterfrom
trivikr:clippy-trivially-copy-pass-by-ref
Open

trivikr wants to merge 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.

This branch has not been deployed

No deployments
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.

1 participant