Skip to content

Option to disable trivially_copy_pass_by_ref in public functions #4504

Closed
@mati865

Description

@mati865

Running Clippy over Rust repo yields about 100 unique warnings from trivially_copy_pass_by_ref, almost all of them were tripped by public functions which are not going to change.

Having option to disable it for public functions would help if this and probably other cases.

EDIT: ptr_arg have similar issue (but there are only 13 occurrences). Maybe something more generic should be developed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions