{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/1279","repository_url":"https://api.github.com/repos/rust-lang/rust-clippy","labels_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/1279/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/1279/comments","events_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/1279/events","html_url":"https://github.com/rust-lang/rust-clippy/issues/1279","id":183038324,"node_id":"MDU6SXNzdWUxODMwMzgzMjQ=","number":1279,"title":"False positive for_kv_map in a consuming loop","user":{"login":"Riateche","id":1740713,"node_id":"MDQ6VXNlcjE3NDA3MTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1740713?v=4","gravatar_id":"","url":"https://api.github.com/users/Riateche","html_url":"https://github.com/Riateche","followers_url":"https://api.github.com/users/Riateche/followers","following_url":"https://api.github.com/users/Riateche/following{/other_user}","gists_url":"https://api.github.com/users/Riateche/gists{/gist_id}","starred_url":"https://api.github.com/users/Riateche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riateche/subscriptions","organizations_url":"https://api.github.com/users/Riateche/orgs","repos_url":"https://api.github.com/users/Riateche/repos","events_url":"https://api.github.com/users/Riateche/events{/privacy}","received_events_url":"https://api.github.com/users/Riateche/received_events","type":"User","site_admin":false},"labels":[{"id":149309557,"node_id":"MDU6TGFiZWwxNDkzMDk1NTc=","url":"https://api.github.com/repos/rust-lang/rust-clippy/labels/L-bug%20:beetle:","name":"L-bug :beetle:","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-14T12:31:52Z","updated_at":"2019-01-03T14:34:24Z","closed_at":null,"author_association":"NONE","body":"```\nfn main() {\n  let c: std::collections::HashMap<i32, String> = Default::default();\n  for (_, b) in c {\n    println!(\"{:?}\", b);\n  }\n}\n```\n\nThe lint suggests to use `values()` but AFAIK there is no consuming alternative to `values()`. (And if it exists, the message should mention it.)\n\nSimilar issue: #709.\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/comments/451160324","html_url":"https://github.com/rust-lang/rust-clippy/issues/1279#issuecomment-451160324","issue_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/1279","id":451160324,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTE2MDMyNA==","user":{"login":"phansch","id":2042399,"node_id":"MDQ6VXNlcjIwNDIzOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/2042399?v=4","gravatar_id":"","url":"https://api.github.com/users/phansch","html_url":"https://github.com/phansch","followers_url":"https://api.github.com/users/phansch/followers","following_url":"https://api.github.com/users/phansch/following{/other_user}","gists_url":"https://api.github.com/users/phansch/gists{/gist_id}","starred_url":"https://api.github.com/users/phansch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansch/subscriptions","organizations_url":"https://api.github.com/users/phansch/orgs","repos_url":"https://api.github.com/users/phansch/repos","events_url":"https://api.github.com/users/phansch/events{/privacy}","received_events_url":"https://api.github.com/users/phansch/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T14:34:24Z","updated_at":"2019-01-03T14:34:24Z","author_association":"COLLABORATOR","body":"If it is fixed, it would be nice to add this example to https://github.com/rust-lang/rust-clippy/blob/master/tests/ui/for_kv_map.rs as well."}}
{"actor":{"display_login":"phansch"}}