{"action":"created","comment":{"url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments/71070229","id":71070229,"diff_hunk":"@@ -142,13 +136,13 @@ impl<'a> Counter<'a> {\n \n     pub fn unit(&self) -> Result<CounterUnit> {\n         self.fle.get_header().read(\"counter.unit\")\n-            .map_err(|e| CE::new(CEK::StoreWriteError, Some(Box::new(e))))\n-            .and_then(|u| {\n+            .map_err(|e| CEK::StoreWriteError.into_error_with_cause(Box::new(e)))\n+            .and_then(|u| \n                 match u {\n                     Some(Value::String(s)) => Ok(CounterUnit(s)),\n                     _ => Err(CEK::HeaderTypeError.into_error())\n                 }\n-            })\n+            )","path":"libimagcounter/src/counter.rs","position":null,"original_position":44,"commit_id":"bcef35179c059190d53519aa5d5fae636cc44937","original_commit_id":"6b5a637806ebbe2a4069f9e5cbb714dcbf5109ac","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"body":"You can remove two more lines by putting the `}` and the `)` on the same line and if you put the `match` right after the `|u|` (and remove also some indentation).","created_at":"2016-07-16T18:52:37Z","updated_at":"2016-07-16T18:52:37Z","html_url":"https://github.com/matthiasbeyer/imag/pull/535#discussion_r71070229","pull_request_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535","_links":{"self":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments/71070229"},"html":{"href":"https://github.com/matthiasbeyer/imag/pull/535#discussion_r71070229"},"pull_request":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535"}}},"pull_request":{"url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535","id":77510918,"html_url":"https://github.com/matthiasbeyer/imag/pull/535","diff_url":"https://github.com/matthiasbeyer/imag/pull/535.diff","patch_url":"https://github.com/matthiasbeyer/imag/pull/535.patch","issue_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/535","number":535,"state":"open","locked":false,"title":"Libimagcounter/units","user":{"login":"asuivelentine","id":15631056,"avatar_url":"https://avatars.githubusercontent.com/u/15631056?v=3","gravatar_id":"","url":"https://api.github.com/users/asuivelentine","html_url":"https://github.com/asuivelentine","followers_url":"https://api.github.com/users/asuivelentine/followers","following_url":"https://api.github.com/users/asuivelentine/following{/other_user}","gists_url":"https://api.github.com/users/asuivelentine/gists{/gist_id}","starred_url":"https://api.github.com/users/asuivelentine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asuivelentine/subscriptions","organizations_url":"https://api.github.com/users/asuivelentine/orgs","repos_url":"https://api.github.com/users/asuivelentine/repos","events_url":"https://api.github.com/users/asuivelentine/events{/privacy}","received_events_url":"https://api.github.com/users/asuivelentine/received_events","type":"User","site_admin":false},"body":"Closes #516 ","created_at":"2016-07-14T19:23:45Z","updated_at":"2016-07-16T18:52:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8a392b7bac4971d9e77d18afe8a7914f7dcd06d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535/commits","review_comments_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535/comments","review_comment_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/535/comments","statuses_url":"https://api.github.com/repos/matthiasbeyer/imag/statuses/bcef35179c059190d53519aa5d5fae636cc44937","head":{"label":"asuivelentine:libimagcounter/units","ref":"libimagcounter/units","sha":"bcef35179c059190d53519aa5d5fae636cc44937","user":{"login":"asuivelentine","id":15631056,"avatar_url":"https://avatars.githubusercontent.com/u/15631056?v=3","gravatar_id":"","url":"https://api.github.com/users/asuivelentine","html_url":"https://github.com/asuivelentine","followers_url":"https://api.github.com/users/asuivelentine/followers","following_url":"https://api.github.com/users/asuivelentine/following{/other_user}","gists_url":"https://api.github.com/users/asuivelentine/gists{/gist_id}","starred_url":"https://api.github.com/users/asuivelentine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asuivelentine/subscriptions","organizations_url":"https://api.github.com/users/asuivelentine/orgs","repos_url":"https://api.github.com/users/asuivelentine/repos","events_url":"https://api.github.com/users/asuivelentine/events{/privacy}","received_events_url":"https://api.github.com/users/asuivelentine/received_events","type":"User","site_admin":false},"repo":{"id":63355826,"name":"imag","full_name":"asuivelentine/imag","owner":{"login":"asuivelentine","id":15631056,"avatar_url":"https://avatars.githubusercontent.com/u/15631056?v=3","gravatar_id":"","url":"https://api.github.com/users/asuivelentine","html_url":"https://github.com/asuivelentine","followers_url":"https://api.github.com/users/asuivelentine/followers","following_url":"https://api.github.com/users/asuivelentine/following{/other_user}","gists_url":"https://api.github.com/users/asuivelentine/gists{/gist_id}","starred_url":"https://api.github.com/users/asuivelentine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asuivelentine/subscriptions","organizations_url":"https://api.github.com/users/asuivelentine/orgs","repos_url":"https://api.github.com/users/asuivelentine/repos","events_url":"https://api.github.com/users/asuivelentine/events{/privacy}","received_events_url":"https://api.github.com/users/asuivelentine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asuivelentine/imag","description":"imag - Text based personal information management suite","fork":true,"url":"https://api.github.com/repos/asuivelentine/imag","forks_url":"https://api.github.com/repos/asuivelentine/imag/forks","keys_url":"https://api.github.com/repos/asuivelentine/imag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asuivelentine/imag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asuivelentine/imag/teams","hooks_url":"https://api.github.com/repos/asuivelentine/imag/hooks","issue_events_url":"https://api.github.com/repos/asuivelentine/imag/issues/events{/number}","events_url":"https://api.github.com/repos/asuivelentine/imag/events","assignees_url":"https://api.github.com/repos/asuivelentine/imag/assignees{/user}","branches_url":"https://api.github.com/repos/asuivelentine/imag/branches{/branch}","tags_url":"https://api.github.com/repos/asuivelentine/imag/tags","blobs_url":"https://api.github.com/repos/asuivelentine/imag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asuivelentine/imag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asuivelentine/imag/git/refs{/sha}","trees_url":"https://api.github.com/repos/asuivelentine/imag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asuivelentine/imag/statuses/{sha}","languages_url":"https://api.github.com/repos/asuivelentine/imag/languages","stargazers_url":"https://api.github.com/repos/asuivelentine/imag/stargazers","contributors_url":"https://api.github.com/repos/asuivelentine/imag/contributors","subscribers_url":"https://api.github.com/repos/asuivelentine/imag/subscribers","subscription_url":"https://api.github.com/repos/asuivelentine/imag/subscription","commits_url":"https://api.github.com/repos/asuivelentine/imag/commits{/sha}","git_commits_url":"https://api.github.com/repos/asuivelentine/imag/git/commits{/sha}","comments_url":"https://api.github.com/repos/asuivelentine/imag/comments{/number}","issue_comment_url":"https://api.github.com/repos/asuivelentine/imag/issues/comments{/number}","contents_url":"https://api.github.com/repos/asuivelentine/imag/contents/{+path}","compare_url":"https://api.github.com/repos/asuivelentine/imag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asuivelentine/imag/merges","archive_url":"https://api.github.com/repos/asuivelentine/imag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asuivelentine/imag/downloads","issues_url":"https://api.github.com/repos/asuivelentine/imag/issues{/number}","pulls_url":"https://api.github.com/repos/asuivelentine/imag/pulls{/number}","milestones_url":"https://api.github.com/repos/asuivelentine/imag/milestones{/number}","notifications_url":"https://api.github.com/repos/asuivelentine/imag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asuivelentine/imag/labels{/name}","releases_url":"https://api.github.com/repos/asuivelentine/imag/releases{/id}","deployments_url":"https://api.github.com/repos/asuivelentine/imag/deployments","created_at":"2016-07-14T17:22:27Z","updated_at":"2016-07-14T17:22:28Z","pushed_at":"2016-07-16T18:42:50Z","git_url":"git://github.com/asuivelentine/imag.git","ssh_url":"git@github.com:asuivelentine/imag.git","clone_url":"https://github.com/asuivelentine/imag.git","svn_url":"https://github.com/asuivelentine/imag","homepage":"","size":1576,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"matthiasbeyer:master","ref":"master","sha":"0c5674dd471d439bcbe82439f649b13e90e5064b","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"repo":{"id":45788713,"name":"imag","full_name":"matthiasbeyer/imag","owner":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthiasbeyer/imag","description":"imag - Text based personal information management suite","fork":false,"url":"https://api.github.com/repos/matthiasbeyer/imag","forks_url":"https://api.github.com/repos/matthiasbeyer/imag/forks","keys_url":"https://api.github.com/repos/matthiasbeyer/imag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthiasbeyer/imag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthiasbeyer/imag/teams","hooks_url":"https://api.github.com/repos/matthiasbeyer/imag/hooks","issue_events_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/events{/number}","events_url":"https://api.github.com/repos/matthiasbeyer/imag/events","assignees_url":"https://api.github.com/repos/matthiasbeyer/imag/assignees{/user}","branches_url":"https://api.github.com/repos/matthiasbeyer/imag/branches{/branch}","tags_url":"https://api.github.com/repos/matthiasbeyer/imag/tags","blobs_url":"https://api.github.com/repos/matthiasbeyer/imag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthiasbeyer/imag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthiasbeyer/imag/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthiasbeyer/imag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthiasbeyer/imag/statuses/{sha}","languages_url":"https://api.github.com/repos/matthiasbeyer/imag/languages","stargazers_url":"https://api.github.com/repos/matthiasbeyer/imag/stargazers","contributors_url":"https://api.github.com/repos/matthiasbeyer/imag/contributors","subscribers_url":"https://api.github.com/repos/matthiasbeyer/imag/subscribers","subscription_url":"https://api.github.com/repos/matthiasbeyer/imag/subscription","commits_url":"https://api.github.com/repos/matthiasbeyer/imag/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthiasbeyer/imag/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthiasbeyer/imag/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthiasbeyer/imag/contents/{+path}","compare_url":"https://api.github.com/repos/matthiasbeyer/imag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthiasbeyer/imag/merges","archive_url":"https://api.github.com/repos/matthiasbeyer/imag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthiasbeyer/imag/downloads","issues_url":"https://api.github.com/repos/matthiasbeyer/imag/issues{/number}","pulls_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls{/number}","milestones_url":"https://api.github.com/repos/matthiasbeyer/imag/milestones{/number}","notifications_url":"https://api.github.com/repos/matthiasbeyer/imag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthiasbeyer/imag/labels{/name}","releases_url":"https://api.github.com/repos/matthiasbeyer/imag/releases{/id}","deployments_url":"https://api.github.com/repos/matthiasbeyer/imag/deployments","created_at":"2015-11-08T16:34:25Z","updated_at":"2016-07-16T12:42:56Z","pushed_at":"2016-07-16T18:42:51Z","git_url":"git://github.com/matthiasbeyer/imag.git","ssh_url":"git@github.com:matthiasbeyer/imag.git","clone_url":"https://github.com/matthiasbeyer/imag.git","svn_url":"https://github.com/matthiasbeyer/imag","homepage":"","size":1771,"stargazers_count":81,"watchers_count":81,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":76,"forks":16,"open_issues":76,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535"},"html":{"href":"https://github.com/matthiasbeyer/imag/pull/535"},"issue":{"href":"https://api.github.com/repos/matthiasbeyer/imag/issues/535"},"comments":{"href":"https://api.github.com/repos/matthiasbeyer/imag/issues/535/comments"},"review_comments":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535/comments"},"review_comment":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/535/commits"},"statuses":{"href":"https://api.github.com/repos/matthiasbeyer/imag/statuses/bcef35179c059190d53519aa5d5fae636cc44937"}}}}
{"actor":{"display_login":"matthiasbeyer"}}