Skip to content

bad match_ref_pats suggestion. #4834

Open
@Lokathor

Description

@Lokathor

In this line of this file of this commit, clippy says "you don't need to add & to all patterns", but because the & is actually changing the type of the binding, if you take off that & then the type going into png_u16 become wrong and the code doesn't compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions