Skip to content

clippy does not warn me of shadowing #3979

@bestia-dev

Description

@bestia-dev

clippy 0.0.212 (1fac380 2019-02-20)
I use:
clippy::shadow_reuse,
clippy::shadow_same,
clippy::shadow_unrelated,

I have this code:
let users = Arc::new(Mutex::new(HashMap::new()));
// Turn our "state" into a new Filter...
let users = warp::any().map(move || users.clone());

Clippy does not warn me about this shadowing.
https://github.com/LucianoBestia/mem2_server

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions