{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/443","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/443/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/443/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/443","id":115760147,"number":443,"title":"map_clone false positive unless `.cloned()` exists","user":{"login":"llogiq","id":4200835,"avatar_url":"https://avatars.githubusercontent.com/u/4200835?v=3","gravatar_id":"","url":"https://api.github.com/users/llogiq","html_url":"https://github.com/llogiq","followers_url":"https://api.github.com/users/llogiq/followers","following_url":"https://api.github.com/users/llogiq/following{/other_user}","gists_url":"https://api.github.com/users/llogiq/gists{/gist_id}","starred_url":"https://api.github.com/users/llogiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llogiq/subscriptions","organizations_url":"https://api.github.com/users/llogiq/orgs","repos_url":"https://api.github.com/users/llogiq/repos","events_url":"https://api.github.com/users/llogiq/events{/privacy}","received_events_url":"https://api.github.com/users/llogiq/received_events","type":"User","site_admin":false},"labels":[{"id":246677082,"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/C-assigned","name":"C-assigned","color":"bfdadc","default":false},{"id":246553280,"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/E-medium","name":"E-medium","color":"fbca04","default":false},{"id":149309557,"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/L-bug","name":"L-bug","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"llogiq","id":4200835,"avatar_url":"https://avatars.githubusercontent.com/u/4200835?v=3","gravatar_id":"","url":"https://api.github.com/users/llogiq","html_url":"https://github.com/llogiq","followers_url":"https://api.github.com/users/llogiq/followers","following_url":"https://api.github.com/users/llogiq/following{/other_user}","gists_url":"https://api.github.com/users/llogiq/gists{/gist_id}","starred_url":"https://api.github.com/users/llogiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llogiq/subscriptions","organizations_url":"https://api.github.com/users/llogiq/orgs","repos_url":"https://api.github.com/users/llogiq/repos","events_url":"https://api.github.com/users/llogiq/events{/privacy}","received_events_url":"https://api.github.com/users/llogiq/received_events","type":"User","site_admin":false},"assignees":[{"login":"llogiq","id":4200835,"avatar_url":"https://avatars.githubusercontent.com/u/4200835?v=3","gravatar_id":"","url":"https://api.github.com/users/llogiq","html_url":"https://github.com/llogiq","followers_url":"https://api.github.com/users/llogiq/followers","following_url":"https://api.github.com/users/llogiq/following{/other_user}","gists_url":"https://api.github.com/users/llogiq/gists{/gist_id}","starred_url":"https://api.github.com/users/llogiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llogiq/subscriptions","organizations_url":"https://api.github.com/users/llogiq/orgs","repos_url":"https://api.github.com/users/llogiq/repos","events_url":"https://api.github.com/users/llogiq/events{/privacy}","received_events_url":"https://api.github.com/users/llogiq/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2015-11-08T20:57:29Z","updated_at":"2016-11-10T12:21:04Z","closed_at":null,"body":"Currently the code just silently assumes that whatever has `.map(_)` also has `.cloned()`. However, checking for this without introducing false negatives is surprisingly tricky.\n"},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/259676566","html_url":"https://github.com/Manishearth/rust-clippy/issues/443#issuecomment-259676566","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/443","id":259676566,"user":{"login":"malbarbo","id":1678126,"avatar_url":"https://avatars.githubusercontent.com/u/1678126?v=3","gravatar_id":"","url":"https://api.github.com/users/malbarbo","html_url":"https://github.com/malbarbo","followers_url":"https://api.github.com/users/malbarbo/followers","following_url":"https://api.github.com/users/malbarbo/following{/other_user}","gists_url":"https://api.github.com/users/malbarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/malbarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malbarbo/subscriptions","organizations_url":"https://api.github.com/users/malbarbo/orgs","repos_url":"https://api.github.com/users/malbarbo/repos","events_url":"https://api.github.com/users/malbarbo/events{/privacy}","received_events_url":"https://api.github.com/users/malbarbo/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T12:21:04Z","updated_at":"2016-11-10T12:21:04Z","body":"An example of false positive:\r\n\r\n```rust\r\nvec![1].iter_mut().map(|x| *x);\r\n```"}}
{"actor":{"display_login":"malbarbo"}}