{"action":"created","issue":{"url":"https://api.github.com/repos/dbrgn/result/issues/2","repository_url":"https://api.github.com/repos/dbrgn/result","labels_url":"https://api.github.com/repos/dbrgn/result/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dbrgn/result/issues/2/comments","events_url":"https://api.github.com/repos/dbrgn/result/issues/2/events","html_url":"https://github.com/dbrgn/result/pull/2","id":177916904,"number":2,"title":"'and_then' and 'or_else' methods","user":{"login":"iwtcs","id":940191,"avatar_url":"https://avatars.githubusercontent.com/u/940191?v=3","gravatar_id":"","url":"https://api.github.com/users/iwtcs","html_url":"https://github.com/iwtcs","followers_url":"https://api.github.com/users/iwtcs/followers","following_url":"https://api.github.com/users/iwtcs/following{/other_user}","gists_url":"https://api.github.com/users/iwtcs/gists{/gist_id}","starred_url":"https://api.github.com/users/iwtcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwtcs/subscriptions","organizations_url":"https://api.github.com/users/iwtcs/orgs","repos_url":"https://api.github.com/users/iwtcs/repos","events_url":"https://api.github.com/users/iwtcs/events{/privacy}","received_events_url":"https://api.github.com/users/iwtcs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-19T22:39:16Z","updated_at":"2016-09-19T22:40:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dbrgn/result/pulls/2","html_url":"https://github.com/dbrgn/result/pull/2","diff_url":"https://github.com/dbrgn/result/pull/2.diff","patch_url":"https://github.com/dbrgn/result/pull/2.patch"},"body":"Happy to see this module exists.\r\nI was toying with it the other day and felt I could make my code simpler using a bit of chaining.\r\nSo here are the [and_then](https://doc.rust-lang.org/std/result/enum.Result.html#method.and_then) and [or_else}(https://doc.rust-lang.org/std/result/enum.Result.html#method.or_else) inspired methods.\r\n\r\nI added the kwargs option for more flexibility (and clarity)\r\n\r\nI also added the __eq__  magic method as Ok(1) was not equal to Ok(1)"},"comment":{"url":"https://api.github.com/repos/dbrgn/result/issues/comments/248149632","html_url":"https://github.com/dbrgn/result/pull/2#issuecomment-248149632","issue_url":"https://api.github.com/repos/dbrgn/result/issues/2","id":248149632,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T22:40:18Z","updated_at":"2016-09-19T22:40:18Z","body":"\n[![Coverage Status](https://coveralls.io/builds/7958296/badge)](https://coveralls.io/builds/7958296)\n\nCoverage remained the same at 100.0% when pulling **b74706c6a3af865fba41be2ff19131a41ef0af29 on iwtcs:and_then-or_else** into **e289f7213a2597929322b821810052d25f39844f on dbrgn:master**.\n"}}
{"actor":{"display_login":"coveralls"}}