-
Notifications
You must be signed in to change notification settings - Fork 2k
clippy does not warn me of shadowing #3979
Copy link
Copy link
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messages
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messages
Type
Fields
Give feedbackNo fields configured for issues without a type.
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