{"action":"created","comment":{"url":"https://api.github.com/repos/redox-os/coreutils/pulls/comments/56309095","id":56309095,"diff_hunk":"@@ -104,23 +104,48 @@ struct Flags {\n }\n \n impl Flags {\n-    fn print_count<'a, W: Write>(self, count: Counter, file: &'a str, stdout: &mut W, stderr: &mut Stderr) {\n-        stdout.write(b\"    \").try(&mut *stderr);\n+    fn print_counts<W: Write>(self, mut counts: Vec<(Counter, String)>, stdout: &mut W, stderr: &mut Stderr) {","path":"src/bin/wc.rs","position":6,"original_position":6,"commit_id":"202e8f5211ead68e371433c7690f57835fbfd404","original_commit_id":"202e8f5211ead68e371433c7690f57835fbfd404","user":{"login":"stratact","id":13501315,"avatar_url":"https://avatars.githubusercontent.com/u/13501315?v=3","gravatar_id":"","url":"https://api.github.com/users/stratact","html_url":"https://github.com/stratact","followers_url":"https://api.github.com/users/stratact/followers","following_url":"https://api.github.com/users/stratact/following{/other_user}","gists_url":"https://api.github.com/users/stratact/gists{/gist_id}","starred_url":"https://api.github.com/users/stratact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratact/subscriptions","organizations_url":"https://api.github.com/users/stratact/orgs","repos_url":"https://api.github.com/users/stratact/repos","events_url":"https://api.github.com/users/stratact/events{/privacy}","received_events_url":"https://api.github.com/users/stratact/received_events","type":"User","site_admin":false},"body":"He could have also `&mut` the Vec. I don't see the point in moving its data.","created_at":"2016-03-16T10:14:05Z","updated_at":"2016-03-16T10:14:05Z","html_url":"https://github.com/redox-os/coreutils/pull/39#discussion_r56309095","pull_request_url":"https://api.github.com/repos/redox-os/coreutils/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/redox-os/coreutils/pulls/comments/56309095"},"html":{"href":"https://github.com/redox-os/coreutils/pull/39#discussion_r56309095"},"pull_request":{"href":"https://api.github.com/repos/redox-os/coreutils/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/redox-os/coreutils/pulls/39","id":63035872,"html_url":"https://github.com/redox-os/coreutils/pull/39","diff_url":"https://github.com/redox-os/coreutils/pull/39.diff","patch_url":"https://github.com/redox-os/coreutils/pull/39.patch","issue_url":"https://api.github.com/repos/redox-os/coreutils/issues/39","number":39,"state":"open","locked":false,"title":"Make wc output for multiple files aligned","user":{"login":"MovingtoMars","id":596124,"avatar_url":"https://avatars.githubusercontent.com/u/596124?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingtoMars","html_url":"https://github.com/MovingtoMars","followers_url":"https://api.github.com/users/MovingtoMars/followers","following_url":"https://api.github.com/users/MovingtoMars/following{/other_user}","gists_url":"https://api.github.com/users/MovingtoMars/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingtoMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingtoMars/subscriptions","organizations_url":"https://api.github.com/users/MovingtoMars/orgs","repos_url":"https://api.github.com/users/MovingtoMars/repos","events_url":"https://api.github.com/users/MovingtoMars/events{/privacy}","received_events_url":"https://api.github.com/users/MovingtoMars/received_events","type":"User","site_admin":false},"body":"Example:\r\n```\r\nsachiel@jiyuu:[coreutils]$ ./target/debug/wc ~/matlab ~/meikle ~/slowcat\r\n    1683 6027 55331 /home/sachiel/matlab\r\n    1    1    25    /home/sachiel/meikle\r\n    12   44   274   /home/sachiel/slowcat\r\n    1696 6072 55630 total\r\nsachiel@jiyuu:[coreutils]$ \r\n```\r\n\r\nThis closes #24.","created_at":"2016-03-16T09:37:43Z","updated_at":"2016-03-16T10:14:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30a80663a1e7ffca0305b8d97d6ff72b4d6c999a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/redox-os/coreutils/pulls/39/commits","review_comments_url":"https://api.github.com/repos/redox-os/coreutils/pulls/39/comments","review_comment_url":"https://api.github.com/repos/redox-os/coreutils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redox-os/coreutils/issues/39/comments","statuses_url":"https://api.github.com/repos/redox-os/coreutils/statuses/202e8f5211ead68e371433c7690f57835fbfd404","head":{"label":"MovingtoMars:wc_align","ref":"wc_align","sha":"202e8f5211ead68e371433c7690f57835fbfd404","user":{"login":"MovingtoMars","id":596124,"avatar_url":"https://avatars.githubusercontent.com/u/596124?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingtoMars","html_url":"https://github.com/MovingtoMars","followers_url":"https://api.github.com/users/MovingtoMars/followers","following_url":"https://api.github.com/users/MovingtoMars/following{/other_user}","gists_url":"https://api.github.com/users/MovingtoMars/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingtoMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingtoMars/subscriptions","organizations_url":"https://api.github.com/users/MovingtoMars/orgs","repos_url":"https://api.github.com/users/MovingtoMars/repos","events_url":"https://api.github.com/users/MovingtoMars/events{/privacy}","received_events_url":"https://api.github.com/users/MovingtoMars/received_events","type":"User","site_admin":false},"repo":{"id":54015457,"name":"coreutils","full_name":"MovingtoMars/coreutils","owner":{"login":"MovingtoMars","id":596124,"avatar_url":"https://avatars.githubusercontent.com/u/596124?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingtoMars","html_url":"https://github.com/MovingtoMars","followers_url":"https://api.github.com/users/MovingtoMars/followers","following_url":"https://api.github.com/users/MovingtoMars/following{/other_user}","gists_url":"https://api.github.com/users/MovingtoMars/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingtoMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingtoMars/subscriptions","organizations_url":"https://api.github.com/users/MovingtoMars/orgs","repos_url":"https://api.github.com/users/MovingtoMars/repos","events_url":"https://api.github.com/users/MovingtoMars/events{/privacy}","received_events_url":"https://api.github.com/users/MovingtoMars/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MovingtoMars/coreutils","description":"The Redox coreutils.","fork":true,"url":"https://api.github.com/repos/MovingtoMars/coreutils","forks_url":"https://api.github.com/repos/MovingtoMars/coreutils/forks","keys_url":"https://api.github.com/repos/MovingtoMars/coreutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MovingtoMars/coreutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MovingtoMars/coreutils/teams","hooks_url":"https://api.github.com/repos/MovingtoMars/coreutils/hooks","issue_events_url":"https://api.github.com/repos/MovingtoMars/coreutils/issues/events{/number}","events_url":"https://api.github.com/repos/MovingtoMars/coreutils/events","assignees_url":"https://api.github.com/repos/MovingtoMars/coreutils/assignees{/user}","branches_url":"https://api.github.com/repos/MovingtoMars/coreutils/branches{/branch}","tags_url":"https://api.github.com/repos/MovingtoMars/coreutils/tags","blobs_url":"https://api.github.com/repos/MovingtoMars/coreutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MovingtoMars/coreutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MovingtoMars/coreutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/MovingtoMars/coreutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MovingtoMars/coreutils/statuses/{sha}","languages_url":"https://api.github.com/repos/MovingtoMars/coreutils/languages","stargazers_url":"https://api.github.com/repos/MovingtoMars/coreutils/stargazers","contributors_url":"https://api.github.com/repos/MovingtoMars/coreutils/contributors","subscribers_url":"https://api.github.com/repos/MovingtoMars/coreutils/subscribers","subscription_url":"https://api.github.com/repos/MovingtoMars/coreutils/subscription","commits_url":"https://api.github.com/repos/MovingtoMars/coreutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/MovingtoMars/coreutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/MovingtoMars/coreutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/MovingtoMars/coreutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/MovingtoMars/coreutils/contents/{+path}","compare_url":"https://api.github.com/repos/MovingtoMars/coreutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MovingtoMars/coreutils/merges","archive_url":"https://api.github.com/repos/MovingtoMars/coreutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MovingtoMars/coreutils/downloads","issues_url":"https://api.github.com/repos/MovingtoMars/coreutils/issues{/number}","pulls_url":"https://api.github.com/repos/MovingtoMars/coreutils/pulls{/number}","milestones_url":"https://api.github.com/repos/MovingtoMars/coreutils/milestones{/number}","notifications_url":"https://api.github.com/repos/MovingtoMars/coreutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MovingtoMars/coreutils/labels{/name}","releases_url":"https://api.github.com/repos/MovingtoMars/coreutils/releases{/id}","deployments_url":"https://api.github.com/repos/MovingtoMars/coreutils/deployments","created_at":"2016-03-16T08:49:55Z","updated_at":"2016-03-16T08:49:55Z","pushed_at":"2016-03-16T09:36:08Z","git_url":"git://github.com/MovingtoMars/coreutils.git","ssh_url":"git@github.com:MovingtoMars/coreutils.git","clone_url":"https://github.com/MovingtoMars/coreutils.git","svn_url":"https://github.com/MovingtoMars/coreutils","homepage":"","size":96,"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":"redox-os:master","ref":"master","sha":"19f100aa7e4b1cf7a163a6b1349d98a68afdf386","user":{"login":"redox-os","id":14909902,"avatar_url":"https://avatars.githubusercontent.com/u/14909902?v=3","gravatar_id":"","url":"https://api.github.com/users/redox-os","html_url":"https://github.com/redox-os","followers_url":"https://api.github.com/users/redox-os/followers","following_url":"https://api.github.com/users/redox-os/following{/other_user}","gists_url":"https://api.github.com/users/redox-os/gists{/gist_id}","starred_url":"https://api.github.com/users/redox-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redox-os/subscriptions","organizations_url":"https://api.github.com/users/redox-os/orgs","repos_url":"https://api.github.com/users/redox-os/repos","events_url":"https://api.github.com/users/redox-os/events{/privacy}","received_events_url":"https://api.github.com/users/redox-os/received_events","type":"Organization","site_admin":false},"repo":{"id":48803546,"name":"coreutils","full_name":"redox-os/coreutils","owner":{"login":"redox-os","id":14909902,"avatar_url":"https://avatars.githubusercontent.com/u/14909902?v=3","gravatar_id":"","url":"https://api.github.com/users/redox-os","html_url":"https://github.com/redox-os","followers_url":"https://api.github.com/users/redox-os/followers","following_url":"https://api.github.com/users/redox-os/following{/other_user}","gists_url":"https://api.github.com/users/redox-os/gists{/gist_id}","starred_url":"https://api.github.com/users/redox-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redox-os/subscriptions","organizations_url":"https://api.github.com/users/redox-os/orgs","repos_url":"https://api.github.com/users/redox-os/repos","events_url":"https://api.github.com/users/redox-os/events{/privacy}","received_events_url":"https://api.github.com/users/redox-os/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redox-os/coreutils","description":"The Redox coreutils.","fork":false,"url":"https://api.github.com/repos/redox-os/coreutils","forks_url":"https://api.github.com/repos/redox-os/coreutils/forks","keys_url":"https://api.github.com/repos/redox-os/coreutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redox-os/coreutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redox-os/coreutils/teams","hooks_url":"https://api.github.com/repos/redox-os/coreutils/hooks","issue_events_url":"https://api.github.com/repos/redox-os/coreutils/issues/events{/number}","events_url":"https://api.github.com/repos/redox-os/coreutils/events","assignees_url":"https://api.github.com/repos/redox-os/coreutils/assignees{/user}","branches_url":"https://api.github.com/repos/redox-os/coreutils/branches{/branch}","tags_url":"https://api.github.com/repos/redox-os/coreutils/tags","blobs_url":"https://api.github.com/repos/redox-os/coreutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redox-os/coreutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redox-os/coreutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/redox-os/coreutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redox-os/coreutils/statuses/{sha}","languages_url":"https://api.github.com/repos/redox-os/coreutils/languages","stargazers_url":"https://api.github.com/repos/redox-os/coreutils/stargazers","contributors_url":"https://api.github.com/repos/redox-os/coreutils/contributors","subscribers_url":"https://api.github.com/repos/redox-os/coreutils/subscribers","subscription_url":"https://api.github.com/repos/redox-os/coreutils/subscription","commits_url":"https://api.github.com/repos/redox-os/coreutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/redox-os/coreutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/redox-os/coreutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/redox-os/coreutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/redox-os/coreutils/contents/{+path}","compare_url":"https://api.github.com/repos/redox-os/coreutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redox-os/coreutils/merges","archive_url":"https://api.github.com/repos/redox-os/coreutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redox-os/coreutils/downloads","issues_url":"https://api.github.com/repos/redox-os/coreutils/issues{/number}","pulls_url":"https://api.github.com/repos/redox-os/coreutils/pulls{/number}","milestones_url":"https://api.github.com/repos/redox-os/coreutils/milestones{/number}","notifications_url":"https://api.github.com/repos/redox-os/coreutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redox-os/coreutils/labels{/name}","releases_url":"https://api.github.com/repos/redox-os/coreutils/releases{/id}","deployments_url":"https://api.github.com/repos/redox-os/coreutils/deployments","created_at":"2015-12-30T14:13:05Z","updated_at":"2016-03-16T01:09:42Z","pushed_at":"2016-03-16T09:37:43Z","git_url":"git://github.com/redox-os/coreutils.git","ssh_url":"git@github.com:redox-os/coreutils.git","clone_url":"https://github.com/redox-os/coreutils.git","svn_url":"https://github.com/redox-os/coreutils","homepage":"","size":103,"stargazers_count":13,"watchers_count":13,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redox-os/coreutils/pulls/39"},"html":{"href":"https://github.com/redox-os/coreutils/pull/39"},"issue":{"href":"https://api.github.com/repos/redox-os/coreutils/issues/39"},"comments":{"href":"https://api.github.com/repos/redox-os/coreutils/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/redox-os/coreutils/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/redox-os/coreutils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redox-os/coreutils/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/redox-os/coreutils/statuses/202e8f5211ead68e371433c7690f57835fbfd404"}}}}