{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/21","id":59091083,"html_url":"https://github.com/mattnenterprise/rust-ftp/pull/21","diff_url":"https://github.com/mattnenterprise/rust-ftp/pull/21.diff","patch_url":"https://github.com/mattnenterprise/rust-ftp/pull/21.patch","issue_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues/21","number":21,"state":"open","locked":false,"title":"Improved error handling","user":{"login":"matt2xu","id":2864300,"avatar_url":"https://avatars.githubusercontent.com/u/2864300?v=3","gravatar_id":"","url":"https://api.github.com/users/matt2xu","html_url":"https://github.com/matt2xu","followers_url":"https://api.github.com/users/matt2xu/followers","following_url":"https://api.github.com/users/matt2xu/following{/other_user}","gists_url":"https://api.github.com/users/matt2xu/gists{/gist_id}","starred_url":"https://api.github.com/users/matt2xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt2xu/subscriptions","organizations_url":"https://api.github.com/users/matt2xu/orgs","repos_url":"https://api.github.com/users/matt2xu/repos","events_url":"https://api.github.com/users/matt2xu/events{/privacy}","received_events_url":"https://api.github.com/users/matt2xu/received_events","type":"User","site_admin":false},"body":"Uses std::io::Result for easier/more ergonomic error handling.\r\nI'm sorry this is such a big commit, yet all it does is replace all those match with try! and a few Result methods (and_then, unwrap_or_else, this kind of thing). ","created_at":"2016-02-11T20:46:53Z","updated_at":"2016-02-11T20:46:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/21/commits","review_comments_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/21/comments","review_comment_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues/21/comments","statuses_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/statuses/2c0138c7566fb2666e54ac6fc94b6248da36c53f","head":{"label":"matt2xu:io_error","ref":"io_error","sha":"2c0138c7566fb2666e54ac6fc94b6248da36c53f","user":{"login":"matt2xu","id":2864300,"avatar_url":"https://avatars.githubusercontent.com/u/2864300?v=3","gravatar_id":"","url":"https://api.github.com/users/matt2xu","html_url":"https://github.com/matt2xu","followers_url":"https://api.github.com/users/matt2xu/followers","following_url":"https://api.github.com/users/matt2xu/following{/other_user}","gists_url":"https://api.github.com/users/matt2xu/gists{/gist_id}","starred_url":"https://api.github.com/users/matt2xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt2xu/subscriptions","organizations_url":"https://api.github.com/users/matt2xu/orgs","repos_url":"https://api.github.com/users/matt2xu/repos","events_url":"https://api.github.com/users/matt2xu/events{/privacy}","received_events_url":"https://api.github.com/users/matt2xu/received_events","type":"User","site_admin":false},"repo":{"id":51285993,"name":"rust-ftp","full_name":"matt2xu/rust-ftp","owner":{"login":"matt2xu","id":2864300,"avatar_url":"https://avatars.githubusercontent.com/u/2864300?v=3","gravatar_id":"","url":"https://api.github.com/users/matt2xu","html_url":"https://github.com/matt2xu","followers_url":"https://api.github.com/users/matt2xu/followers","following_url":"https://api.github.com/users/matt2xu/following{/other_user}","gists_url":"https://api.github.com/users/matt2xu/gists{/gist_id}","starred_url":"https://api.github.com/users/matt2xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt2xu/subscriptions","organizations_url":"https://api.github.com/users/matt2xu/orgs","repos_url":"https://api.github.com/users/matt2xu/repos","events_url":"https://api.github.com/users/matt2xu/events{/privacy}","received_events_url":"https://api.github.com/users/matt2xu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matt2xu/rust-ftp","description":"FTP client for Rust","fork":true,"url":"https://api.github.com/repos/matt2xu/rust-ftp","forks_url":"https://api.github.com/repos/matt2xu/rust-ftp/forks","keys_url":"https://api.github.com/repos/matt2xu/rust-ftp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matt2xu/rust-ftp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matt2xu/rust-ftp/teams","hooks_url":"https://api.github.com/repos/matt2xu/rust-ftp/hooks","issue_events_url":"https://api.github.com/repos/matt2xu/rust-ftp/issues/events{/number}","events_url":"https://api.github.com/repos/matt2xu/rust-ftp/events","assignees_url":"https://api.github.com/repos/matt2xu/rust-ftp/assignees{/user}","branches_url":"https://api.github.com/repos/matt2xu/rust-ftp/branches{/branch}","tags_url":"https://api.github.com/repos/matt2xu/rust-ftp/tags","blobs_url":"https://api.github.com/repos/matt2xu/rust-ftp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matt2xu/rust-ftp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matt2xu/rust-ftp/git/refs{/sha}","trees_url":"https://api.github.com/repos/matt2xu/rust-ftp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matt2xu/rust-ftp/statuses/{sha}","languages_url":"https://api.github.com/repos/matt2xu/rust-ftp/languages","stargazers_url":"https://api.github.com/repos/matt2xu/rust-ftp/stargazers","contributors_url":"https://api.github.com/repos/matt2xu/rust-ftp/contributors","subscribers_url":"https://api.github.com/repos/matt2xu/rust-ftp/subscribers","subscription_url":"https://api.github.com/repos/matt2xu/rust-ftp/subscription","commits_url":"https://api.github.com/repos/matt2xu/rust-ftp/commits{/sha}","git_commits_url":"https://api.github.com/repos/matt2xu/rust-ftp/git/commits{/sha}","comments_url":"https://api.github.com/repos/matt2xu/rust-ftp/comments{/number}","issue_comment_url":"https://api.github.com/repos/matt2xu/rust-ftp/issues/comments{/number}","contents_url":"https://api.github.com/repos/matt2xu/rust-ftp/contents/{+path}","compare_url":"https://api.github.com/repos/matt2xu/rust-ftp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matt2xu/rust-ftp/merges","archive_url":"https://api.github.com/repos/matt2xu/rust-ftp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matt2xu/rust-ftp/downloads","issues_url":"https://api.github.com/repos/matt2xu/rust-ftp/issues{/number}","pulls_url":"https://api.github.com/repos/matt2xu/rust-ftp/pulls{/number}","milestones_url":"https://api.github.com/repos/matt2xu/rust-ftp/milestones{/number}","notifications_url":"https://api.github.com/repos/matt2xu/rust-ftp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matt2xu/rust-ftp/labels{/name}","releases_url":"https://api.github.com/repos/matt2xu/rust-ftp/releases{/id}","deployments_url":"https://api.github.com/repos/matt2xu/rust-ftp/deployments","created_at":"2016-02-08T08:19:20Z","updated_at":"2016-02-08T08:19:20Z","pushed_at":"2016-02-11T20:41:26Z","git_url":"git://github.com/matt2xu/rust-ftp.git","ssh_url":"git@github.com:matt2xu/rust-ftp.git","clone_url":"https://github.com/matt2xu/rust-ftp.git","svn_url":"https://github.com/matt2xu/rust-ftp","homepage":"","size":41,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattnenterprise:master","ref":"master","sha":"71e409d115675173ec5b74cb51846a414561be7f","user":{"login":"mattnenterprise","id":4503095,"avatar_url":"https://avatars.githubusercontent.com/u/4503095?v=3","gravatar_id":"","url":"https://api.github.com/users/mattnenterprise","html_url":"https://github.com/mattnenterprise","followers_url":"https://api.github.com/users/mattnenterprise/followers","following_url":"https://api.github.com/users/mattnenterprise/following{/other_user}","gists_url":"https://api.github.com/users/mattnenterprise/gists{/gist_id}","starred_url":"https://api.github.com/users/mattnenterprise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattnenterprise/subscriptions","organizations_url":"https://api.github.com/users/mattnenterprise/orgs","repos_url":"https://api.github.com/users/mattnenterprise/repos","events_url":"https://api.github.com/users/mattnenterprise/events{/privacy}","received_events_url":"https://api.github.com/users/mattnenterprise/received_events","type":"User","site_admin":false},"repo":{"id":26988319,"name":"rust-ftp","full_name":"mattnenterprise/rust-ftp","owner":{"login":"mattnenterprise","id":4503095,"avatar_url":"https://avatars.githubusercontent.com/u/4503095?v=3","gravatar_id":"","url":"https://api.github.com/users/mattnenterprise","html_url":"https://github.com/mattnenterprise","followers_url":"https://api.github.com/users/mattnenterprise/followers","following_url":"https://api.github.com/users/mattnenterprise/following{/other_user}","gists_url":"https://api.github.com/users/mattnenterprise/gists{/gist_id}","starred_url":"https://api.github.com/users/mattnenterprise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattnenterprise/subscriptions","organizations_url":"https://api.github.com/users/mattnenterprise/orgs","repos_url":"https://api.github.com/users/mattnenterprise/repos","events_url":"https://api.github.com/users/mattnenterprise/events{/privacy}","received_events_url":"https://api.github.com/users/mattnenterprise/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattnenterprise/rust-ftp","description":"FTP client for Rust","fork":false,"url":"https://api.github.com/repos/mattnenterprise/rust-ftp","forks_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/forks","keys_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/teams","hooks_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/hooks","issue_events_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues/events{/number}","events_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/events","assignees_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/assignees{/user}","branches_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/branches{/branch}","tags_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/tags","blobs_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/statuses/{sha}","languages_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/languages","stargazers_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/stargazers","contributors_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/contributors","subscribers_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/subscribers","subscription_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/subscription","commits_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/contents/{+path}","compare_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/merges","archive_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/downloads","issues_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues{/number}","pulls_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls{/number}","milestones_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/milestones{/number}","notifications_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/labels{/name}","releases_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/releases{/id}","deployments_url":"https://api.github.com/repos/mattnenterprise/rust-ftp/deployments","created_at":"2014-11-22T04:16:13Z","updated_at":"2016-02-07T14:10:17Z","pushed_at":"2016-02-11T20:46:53Z","git_url":"git://github.com/mattnenterprise/rust-ftp.git","ssh_url":"git@github.com:mattnenterprise/rust-ftp.git","clone_url":"https://github.com/mattnenterprise/rust-ftp.git","svn_url":"https://github.com/mattnenterprise/rust-ftp","homepage":"","size":42,"stargazers_count":6,"watchers_count":6,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/21"},"html":{"href":"https://github.com/mattnenterprise/rust-ftp/pull/21"},"issue":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues/21"},"comments":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/mattnenterprise/rust-ftp/statuses/2c0138c7566fb2666e54ac6fc94b6248da36c53f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":126,"deletions":257,"changed_files":2}}