Skip to content

False positive on single_char_pattern with serde_json::Value.find(_) #830

Closed
@llogiq

Description

@llogiq
fn foo(v: &serde_json::Value) {
    let _ = v.find("x")...
}

will trigger the lint, however Value cannot find single characters for some reason. (Found in https://github.com/Thinkofname/steven-rust)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions