{"action":"opened","number":602,"pull_request":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/602","id":50728531,"html_url":"https://github.com/rust-lang-nursery/rustfmt/pull/602","diff_url":"https://github.com/rust-lang-nursery/rustfmt/pull/602.diff","patch_url":"https://github.com/rust-lang-nursery/rustfmt/pull/602.patch","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/602","number":602,"state":"open","locked":false,"title":"Don't print an unnecessary newline after printing format report","user":{"login":"crumblingstatue","id":1521976,"avatar_url":"https://avatars.githubusercontent.com/u/1521976?v=3","gravatar_id":"","url":"https://api.github.com/users/crumblingstatue","html_url":"https://github.com/crumblingstatue","followers_url":"https://api.github.com/users/crumblingstatue/followers","following_url":"https://api.github.com/users/crumblingstatue/following{/other_user}","gists_url":"https://api.github.com/users/crumblingstatue/gists{/gist_id}","starred_url":"https://api.github.com/users/crumblingstatue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crumblingstatue/subscriptions","organizations_url":"https://api.github.com/users/crumblingstatue/orgs","repos_url":"https://api.github.com/users/crumblingstatue/repos","events_url":"https://api.github.com/users/crumblingstatue/events{/privacy}","received_events_url":"https://api.github.com/users/crumblingstatue/received_events","type":"User","site_admin":false},"body":"The Display implementation for FormatReport already prints\r\na newline after every error.\r\n\r\nHowever, if the format report does not contain errors, we\r\ndon't want to print an empty newline.\r\n\r\nThis behavior clutters up the console output with\r\nempty lines when rustfmt is invoked multiple times\r\n(from .e.g a script or cargo-fmt).\r\n\r\nSo instead of using println! to print the report, we just\r\nuse print!.","created_at":"2015-11-14T18:07:10Z","updated_at":"2015-11-14T18:07:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/602/commits","review_comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/602/comments","review_comment_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/602/comments","statuses_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/statuses/5b06ed6817c84ed05f1e1e3c7be68afbc7bde4e8","head":{"label":"crumblingstatue:report_newline","ref":"report_newline","sha":"5b06ed6817c84ed05f1e1e3c7be68afbc7bde4e8","user":{"login":"crumblingstatue","id":1521976,"avatar_url":"https://avatars.githubusercontent.com/u/1521976?v=3","gravatar_id":"","url":"https://api.github.com/users/crumblingstatue","html_url":"https://github.com/crumblingstatue","followers_url":"https://api.github.com/users/crumblingstatue/followers","following_url":"https://api.github.com/users/crumblingstatue/following{/other_user}","gists_url":"https://api.github.com/users/crumblingstatue/gists{/gist_id}","starred_url":"https://api.github.com/users/crumblingstatue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crumblingstatue/subscriptions","organizations_url":"https://api.github.com/users/crumblingstatue/orgs","repos_url":"https://api.github.com/users/crumblingstatue/repos","events_url":"https://api.github.com/users/crumblingstatue/events{/privacy}","received_events_url":"https://api.github.com/users/crumblingstatue/received_events","type":"User","site_admin":false},"repo":{"id":41536720,"name":"rustfmt","full_name":"crumblingstatue/rustfmt","owner":{"login":"crumblingstatue","id":1521976,"avatar_url":"https://avatars.githubusercontent.com/u/1521976?v=3","gravatar_id":"","url":"https://api.github.com/users/crumblingstatue","html_url":"https://github.com/crumblingstatue","followers_url":"https://api.github.com/users/crumblingstatue/followers","following_url":"https://api.github.com/users/crumblingstatue/following{/other_user}","gists_url":"https://api.github.com/users/crumblingstatue/gists{/gist_id}","starred_url":"https://api.github.com/users/crumblingstatue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crumblingstatue/subscriptions","organizations_url":"https://api.github.com/users/crumblingstatue/orgs","repos_url":"https://api.github.com/users/crumblingstatue/repos","events_url":"https://api.github.com/users/crumblingstatue/events{/privacy}","received_events_url":"https://api.github.com/users/crumblingstatue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crumblingstatue/rustfmt","description":"Format Rust code","fork":true,"url":"https://api.github.com/repos/crumblingstatue/rustfmt","forks_url":"https://api.github.com/repos/crumblingstatue/rustfmt/forks","keys_url":"https://api.github.com/repos/crumblingstatue/rustfmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crumblingstatue/rustfmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crumblingstatue/rustfmt/teams","hooks_url":"https://api.github.com/repos/crumblingstatue/rustfmt/hooks","issue_events_url":"https://api.github.com/repos/crumblingstatue/rustfmt/issues/events{/number}","events_url":"https://api.github.com/repos/crumblingstatue/rustfmt/events","assignees_url":"https://api.github.com/repos/crumblingstatue/rustfmt/assignees{/user}","branches_url":"https://api.github.com/repos/crumblingstatue/rustfmt/branches{/branch}","tags_url":"https://api.github.com/repos/crumblingstatue/rustfmt/tags","blobs_url":"https://api.github.com/repos/crumblingstatue/rustfmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crumblingstatue/rustfmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crumblingstatue/rustfmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/crumblingstatue/rustfmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crumblingstatue/rustfmt/statuses/{sha}","languages_url":"https://api.github.com/repos/crumblingstatue/rustfmt/languages","stargazers_url":"https://api.github.com/repos/crumblingstatue/rustfmt/stargazers","contributors_url":"https://api.github.com/repos/crumblingstatue/rustfmt/contributors","subscribers_url":"https://api.github.com/repos/crumblingstatue/rustfmt/subscribers","subscription_url":"https://api.github.com/repos/crumblingstatue/rustfmt/subscription","commits_url":"https://api.github.com/repos/crumblingstatue/rustfmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/crumblingstatue/rustfmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/crumblingstatue/rustfmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/crumblingstatue/rustfmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/crumblingstatue/rustfmt/contents/{+path}","compare_url":"https://api.github.com/repos/crumblingstatue/rustfmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crumblingstatue/rustfmt/merges","archive_url":"https://api.github.com/repos/crumblingstatue/rustfmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crumblingstatue/rustfmt/downloads","issues_url":"https://api.github.com/repos/crumblingstatue/rustfmt/issues{/number}","pulls_url":"https://api.github.com/repos/crumblingstatue/rustfmt/pulls{/number}","milestones_url":"https://api.github.com/repos/crumblingstatue/rustfmt/milestones{/number}","notifications_url":"https://api.github.com/repos/crumblingstatue/rustfmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crumblingstatue/rustfmt/labels{/name}","releases_url":"https://api.github.com/repos/crumblingstatue/rustfmt/releases{/id}","created_at":"2015-08-28T08:41:19Z","updated_at":"2015-08-28T08:41:20Z","pushed_at":"2015-11-14T18:06:59Z","git_url":"git://github.com/crumblingstatue/rustfmt.git","ssh_url":"git@github.com:crumblingstatue/rustfmt.git","clone_url":"https://github.com/crumblingstatue/rustfmt.git","svn_url":"https://github.com/crumblingstatue/rustfmt","homepage":null,"size":562,"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":"rust-lang-nursery:master","ref":"master","sha":"2cf22300028b6480618e16f6b70e38ba37245945","user":{"login":"rust-lang-nursery","id":14631425,"avatar_url":"https://avatars.githubusercontent.com/u/14631425?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang-nursery","html_url":"https://github.com/rust-lang-nursery","followers_url":"https://api.github.com/users/rust-lang-nursery/followers","following_url":"https://api.github.com/users/rust-lang-nursery/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang-nursery/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang-nursery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang-nursery/subscriptions","organizations_url":"https://api.github.com/users/rust-lang-nursery/orgs","repos_url":"https://api.github.com/users/rust-lang-nursery/repos","events_url":"https://api.github.com/users/rust-lang-nursery/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang-nursery/received_events","type":"Organization","site_admin":false},"repo":{"id":31830551,"name":"rustfmt","full_name":"rust-lang-nursery/rustfmt","owner":{"login":"rust-lang-nursery","id":14631425,"avatar_url":"https://avatars.githubusercontent.com/u/14631425?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang-nursery","html_url":"https://github.com/rust-lang-nursery","followers_url":"https://api.github.com/users/rust-lang-nursery/followers","following_url":"https://api.github.com/users/rust-lang-nursery/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang-nursery/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang-nursery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang-nursery/subscriptions","organizations_url":"https://api.github.com/users/rust-lang-nursery/orgs","repos_url":"https://api.github.com/users/rust-lang-nursery/repos","events_url":"https://api.github.com/users/rust-lang-nursery/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang-nursery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang-nursery/rustfmt","description":"Format Rust code","fork":false,"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt","forks_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/forks","keys_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/teams","hooks_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/hooks","issue_events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/events","assignees_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/tags","blobs_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/languages","stargazers_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/stargazers","contributors_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/contributors","subscribers_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/subscribers","subscription_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/subscription","commits_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/merges","archive_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/downloads","issues_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/releases{/id}","created_at":"2015-03-07T22:51:56Z","updated_at":"2015-11-14T13:50:11Z","pushed_at":"2015-11-14T16:59:42Z","git_url":"git://github.com/rust-lang-nursery/rustfmt.git","ssh_url":"git@github.com:rust-lang-nursery/rustfmt.git","clone_url":"https://github.com/rust-lang-nursery/rustfmt.git","svn_url":"https://github.com/rust-lang-nursery/rustfmt","homepage":null,"size":2470,"stargazers_count":493,"watchers_count":493,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":88,"mirror_url":null,"open_issues_count":155,"forks":88,"open_issues":155,"watchers":493,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/602"},"html":{"href":"https://github.com/rust-lang-nursery/rustfmt/pull/602"},"issue":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/602"},"comments":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/602/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/602/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/602/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/statuses/5b06ed6817c84ed05f1e1e3c7be68afbc7bde4e8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}