{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/878","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/878/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/878/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/878","id":150878729,"number":878,"title":"Wrong hint about needless_range_loop","user":{"login":"BusyJay","id":1701473,"avatar_url":"https://avatars.githubusercontent.com/u/1701473?v=3","gravatar_id":"","url":"https://api.github.com/users/BusyJay","html_url":"https://github.com/BusyJay","followers_url":"https://api.github.com/users/BusyJay/followers","following_url":"https://api.github.com/users/BusyJay/following{/other_user}","gists_url":"https://api.github.com/users/BusyJay/gists{/gist_id}","starred_url":"https://api.github.com/users/BusyJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BusyJay/subscriptions","organizations_url":"https://api.github.com/users/BusyJay/orgs","repos_url":"https://api.github.com/users/BusyJay/repos","events_url":"https://api.github.com/users/BusyJay/events{/privacy}","received_events_url":"https://api.github.com/users/BusyJay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-25T14:23:54Z","updated_at":"2016-05-20T09:51:23Z","closed_at":null,"body":"Clippy warns about following snippet:\r\n\r\n```\r\nlet v = vec![5; 10];\r\nfor i in 0..v.len() - 2 {\r\n    println!(\"{}\", v[i + 2] - v[i]);\r\n}\r\n```\r\n\r\nIt suggest me to use `enumerate`. But I don't think I can use `enumerate` in this situation."},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/220564007","html_url":"https://github.com/Manishearth/rust-clippy/issues/878#issuecomment-220564007","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/878","id":220564007,"user":{"login":"BusyJay","id":1701473,"avatar_url":"https://avatars.githubusercontent.com/u/1701473?v=3","gravatar_id":"","url":"https://api.github.com/users/BusyJay","html_url":"https://github.com/BusyJay","followers_url":"https://api.github.com/users/BusyJay/followers","following_url":"https://api.github.com/users/BusyJay/following{/other_user}","gists_url":"https://api.github.com/users/BusyJay/gists{/gist_id}","starred_url":"https://api.github.com/users/BusyJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BusyJay/subscriptions","organizations_url":"https://api.github.com/users/BusyJay/orgs","repos_url":"https://api.github.com/users/BusyJay/repos","events_url":"https://api.github.com/users/BusyJay/events{/privacy}","received_events_url":"https://api.github.com/users/BusyJay/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T09:51:23Z","updated_at":"2016-05-20T09:51:23Z","body":"Maybe `windows` is a good choice in this situation."}}
{"actor":{"display_login":"BusyJay"}}