{"action":"created","issue":{"url":"https://api.github.com/repos/PistonDevelopers/piston/issues/872","labels_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/872/comments","events_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/872/events","html_url":"https://github.com/PistonDevelopers/piston/issues/872","id":66991914,"number":872,"title":"Make it `for e in window.events() { ... }`","user":{"login":"bvssvni","id":1743862,"avatar_url":"https://avatars.githubusercontent.com/u/1743862?v=3","gravatar_id":"","url":"https://api.github.com/users/bvssvni","html_url":"https://github.com/bvssvni","followers_url":"https://api.github.com/users/bvssvni/followers","following_url":"https://api.github.com/users/bvssvni/following{/other_user}","gists_url":"https://api.github.com/users/bvssvni/gists{/gist_id}","starred_url":"https://api.github.com/users/bvssvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvssvni/subscriptions","organizations_url":"https://api.github.com/users/bvssvni/orgs","repos_url":"https://api.github.com/users/bvssvni/repos","events_url":"https://api.github.com/users/bvssvni/events{/privacy}","received_events_url":"https://api.github.com/users/bvssvni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PistonDevelopers/piston/labels/discussion","name":"discussion","color":"bfe5bf"},{"url":"https://api.github.com/repos/PistonDevelopers/piston/labels/draft","name":"draft","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-07T21:12:41Z","updated_at":"2015-04-08T17:19:26Z","closed_at":null,"body":"@kvark got this idea:\r\n\r\n```Rust\r\nfor e in window.events() {\r\n    ...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/PistonDevelopers/piston/issues/comments/90979210","html_url":"https://github.com/PistonDevelopers/piston/issues/872#issuecomment-90979210","issue_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/872","id":90979210,"user":{"login":"bvssvni","id":1743862,"avatar_url":"https://avatars.githubusercontent.com/u/1743862?v=3","gravatar_id":"","url":"https://api.github.com/users/bvssvni","html_url":"https://github.com/bvssvni","followers_url":"https://api.github.com/users/bvssvni/followers","following_url":"https://api.github.com/users/bvssvni/following{/other_user}","gists_url":"https://api.github.com/users/bvssvni/gists{/gist_id}","starred_url":"https://api.github.com/users/bvssvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvssvni/subscriptions","organizations_url":"https://api.github.com/users/bvssvni/orgs","repos_url":"https://api.github.com/users/bvssvni/repos","events_url":"https://api.github.com/users/bvssvni/events{/privacy}","received_events_url":"https://api.github.com/users/bvssvni/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T17:19:26Z","updated_at":"2015-04-08T17:19:26Z","body":"Closed by https://github.com/PistonDevelopers/event/pull/352\r\n\r\nSince we import `piston::event::*;` anyway the solution @Potpourri came up with is elegant.\r\n\r\n```Rust\r\nuse piston::event::Events;\r\n// use piston::event::*; // also imports the event traits\r\n\r\nfor e in window.events() {\r\n    ...\r\n}\r\n```"}}