Skip to content

Latest clippy has weird warning #423

@rjzak

Description

@rjzak

The functions:

have parameters like ref cx: UserContext,, which are triggering this Clippy warning: almost_swapped. Best I can tell, that warning looks for code like: a = b; b = a;, which is not what's happening in these functions.

However, removing the ref keyword and using a & borrow instead causes the project to not build due to a trait error.

I suggest adding #![allow(clippy::almost_swapped)] to crates/server/src/lib.rs for the time being so other PRs may pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions