-
Couldn't load subscription status.
- Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing
Description
fn main() {
let c: std::collections::HashMap<i32, String> = Default::default();
for (_, b) in c {
println!("{:?}", b);
}
}
The lint suggests to use values() but AFAIK there is no consuming alternative to values(). (And if it exists, the message should mention it.)
Similar issue: #709.
fizyk20 and wfraser
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing