{"action":"created","comment":{"url":"https://api.github.com/repos/nrc/rustfmt/pulls/comments/38124222","id":38124222,"diff_hunk":"@@ -402,3 +371,42 @@ impl<'a> FmtVisitor<'a> {\n         }\n     }\n }\n+\n+impl<'a> Rewrite for [ast::Attribute] {\n+    fn rewrite(&self, context: &RewriteContext, _: usize, offset: usize) -> Option<String> {\n+        let mut result = String::new();\n+        if self.len() == 0 {","path":"src/visitor.rs","position":61,"original_position":61,"commit_id":"c3ab87e7a91c8b547e8c02571e5898a941ce854c","original_commit_id":"c3ab87e7a91c8b547e8c02571e5898a941ce854c","user":{"login":"marcusklaas","id":1255413,"avatar_url":"https://avatars.githubusercontent.com/u/1255413?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusklaas","html_url":"https://github.com/marcusklaas","followers_url":"https://api.github.com/users/marcusklaas/followers","following_url":"https://api.github.com/users/marcusklaas/following{/other_user}","gists_url":"https://api.github.com/users/marcusklaas/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusklaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusklaas/subscriptions","organizations_url":"https://api.github.com/users/marcusklaas/orgs","repos_url":"https://api.github.com/users/marcusklaas/repos","events_url":"https://api.github.com/users/marcusklaas/events{/privacy}","received_events_url":"https://api.github.com/users/marcusklaas/received_events","type":"User","site_admin":false},"body":"turbo nit: `is_empty()`","created_at":"2015-08-27T17:45:57Z","updated_at":"2015-08-27T17:45:57Z","html_url":"https://github.com/nrc/rustfmt/pull/208#discussion_r38124222","pull_request_url":"https://api.github.com/repos/nrc/rustfmt/pulls/208","_links":{"self":{"href":"https://api.github.com/repos/nrc/rustfmt/pulls/comments/38124222"},"html":{"href":"https://github.com/nrc/rustfmt/pull/208#discussion_r38124222"},"pull_request":{"href":"https://api.github.com/repos/nrc/rustfmt/pulls/208"}}},"pull_request":{"url":"https://api.github.com/repos/nrc/rustfmt/pulls/208","id":43514992,"html_url":"https://github.com/nrc/rustfmt/pull/208","diff_url":"https://github.com/nrc/rustfmt/pull/208.diff","patch_url":"https://github.com/nrc/rustfmt/pull/208.patch","issue_url":"https://api.github.com/repos/nrc/rustfmt/issues/208","number":208,"state":"open","locked":false,"title":"Implement Rewrite for [ast::Attribute]","user":{"login":"cassiersg","id":9348542,"avatar_url":"https://avatars.githubusercontent.com/u/9348542?v=3","gravatar_id":"","url":"https://api.github.com/users/cassiersg","html_url":"https://github.com/cassiersg","followers_url":"https://api.github.com/users/cassiersg/followers","following_url":"https://api.github.com/users/cassiersg/following{/other_user}","gists_url":"https://api.github.com/users/cassiersg/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiersg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiersg/subscriptions","organizations_url":"https://api.github.com/users/cassiersg/orgs","repos_url":"https://api.github.com/users/cassiersg/repos","events_url":"https://api.github.com/users/cassiersg/events{/privacy}","received_events_url":"https://api.github.com/users/cassiersg/received_events","type":"User","site_admin":false},"body":"r? @nrc @marcusklaas ","created_at":"2015-08-27T13:11:27Z","updated_at":"2015-08-27T17:45:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4272eb59897fb1f643d999a2ec363410d8893293","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nrc/rustfmt/pulls/208/commits","review_comments_url":"https://api.github.com/repos/nrc/rustfmt/pulls/208/comments","review_comment_url":"https://api.github.com/repos/nrc/rustfmt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nrc/rustfmt/issues/208/comments","statuses_url":"https://api.github.com/repos/nrc/rustfmt/statuses/c3ab87e7a91c8b547e8c02571e5898a941ce854c","head":{"label":"cassiersg:rewrite-attrs","ref":"rewrite-attrs","sha":"c3ab87e7a91c8b547e8c02571e5898a941ce854c","user":{"login":"cassiersg","id":9348542,"avatar_url":"https://avatars.githubusercontent.com/u/9348542?v=3","gravatar_id":"","url":"https://api.github.com/users/cassiersg","html_url":"https://github.com/cassiersg","followers_url":"https://api.github.com/users/cassiersg/followers","following_url":"https://api.github.com/users/cassiersg/following{/other_user}","gists_url":"https://api.github.com/users/cassiersg/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiersg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiersg/subscriptions","organizations_url":"https://api.github.com/users/cassiersg/orgs","repos_url":"https://api.github.com/users/cassiersg/repos","events_url":"https://api.github.com/users/cassiersg/events{/privacy}","received_events_url":"https://api.github.com/users/cassiersg/received_events","type":"User","site_admin":false},"repo":{"id":36189450,"name":"rustfmt","full_name":"cassiersg/rustfmt","owner":{"login":"cassiersg","id":9348542,"avatar_url":"https://avatars.githubusercontent.com/u/9348542?v=3","gravatar_id":"","url":"https://api.github.com/users/cassiersg","html_url":"https://github.com/cassiersg","followers_url":"https://api.github.com/users/cassiersg/followers","following_url":"https://api.github.com/users/cassiersg/following{/other_user}","gists_url":"https://api.github.com/users/cassiersg/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiersg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiersg/subscriptions","organizations_url":"https://api.github.com/users/cassiersg/orgs","repos_url":"https://api.github.com/users/cassiersg/repos","events_url":"https://api.github.com/users/cassiersg/events{/privacy}","received_events_url":"https://api.github.com/users/cassiersg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cassiersg/rustfmt","description":"Format Rust code","fork":true,"url":"https://api.github.com/repos/cassiersg/rustfmt","forks_url":"https://api.github.com/repos/cassiersg/rustfmt/forks","keys_url":"https://api.github.com/repos/cassiersg/rustfmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cassiersg/rustfmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cassiersg/rustfmt/teams","hooks_url":"https://api.github.com/repos/cassiersg/rustfmt/hooks","issue_events_url":"https://api.github.com/repos/cassiersg/rustfmt/issues/events{/number}","events_url":"https://api.github.com/repos/cassiersg/rustfmt/events","assignees_url":"https://api.github.com/repos/cassiersg/rustfmt/assignees{/user}","branches_url":"https://api.github.com/repos/cassiersg/rustfmt/branches{/branch}","tags_url":"https://api.github.com/repos/cassiersg/rustfmt/tags","blobs_url":"https://api.github.com/repos/cassiersg/rustfmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cassiersg/rustfmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cassiersg/rustfmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/cassiersg/rustfmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cassiersg/rustfmt/statuses/{sha}","languages_url":"https://api.github.com/repos/cassiersg/rustfmt/languages","stargazers_url":"https://api.github.com/repos/cassiersg/rustfmt/stargazers","contributors_url":"https://api.github.com/repos/cassiersg/rustfmt/contributors","subscribers_url":"https://api.github.com/repos/cassiersg/rustfmt/subscribers","subscription_url":"https://api.github.com/repos/cassiersg/rustfmt/subscription","commits_url":"https://api.github.com/repos/cassiersg/rustfmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/cassiersg/rustfmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/cassiersg/rustfmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/cassiersg/rustfmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/cassiersg/rustfmt/contents/{+path}","compare_url":"https://api.github.com/repos/cassiersg/rustfmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cassiersg/rustfmt/merges","archive_url":"https://api.github.com/repos/cassiersg/rustfmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cassiersg/rustfmt/downloads","issues_url":"https://api.github.com/repos/cassiersg/rustfmt/issues{/number}","pulls_url":"https://api.github.com/repos/cassiersg/rustfmt/pulls{/number}","milestones_url":"https://api.github.com/repos/cassiersg/rustfmt/milestones{/number}","notifications_url":"https://api.github.com/repos/cassiersg/rustfmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cassiersg/rustfmt/labels{/name}","releases_url":"https://api.github.com/repos/cassiersg/rustfmt/releases{/id}","created_at":"2015-05-24T19:37:31Z","updated_at":"2015-05-24T19:37:32Z","pushed_at":"2015-08-27T13:10:15Z","git_url":"git://github.com/cassiersg/rustfmt.git","ssh_url":"git@github.com:cassiersg/rustfmt.git","clone_url":"https://github.com/cassiersg/rustfmt.git","svn_url":"https://github.com/cassiersg/rustfmt","homepage":null,"size":636,"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":"nrc:master","ref":"master","sha":"25650c2a8bc2873cd0eb13a4511aeee7e2f94f25","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"repo":{"id":31830551,"name":"rustfmt","full_name":"nrc/rustfmt","owner":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nrc/rustfmt","description":"Format Rust code","fork":false,"url":"https://api.github.com/repos/nrc/rustfmt","forks_url":"https://api.github.com/repos/nrc/rustfmt/forks","keys_url":"https://api.github.com/repos/nrc/rustfmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nrc/rustfmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nrc/rustfmt/teams","hooks_url":"https://api.github.com/repos/nrc/rustfmt/hooks","issue_events_url":"https://api.github.com/repos/nrc/rustfmt/issues/events{/number}","events_url":"https://api.github.com/repos/nrc/rustfmt/events","assignees_url":"https://api.github.com/repos/nrc/rustfmt/assignees{/user}","branches_url":"https://api.github.com/repos/nrc/rustfmt/branches{/branch}","tags_url":"https://api.github.com/repos/nrc/rustfmt/tags","blobs_url":"https://api.github.com/repos/nrc/rustfmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nrc/rustfmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nrc/rustfmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/nrc/rustfmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nrc/rustfmt/statuses/{sha}","languages_url":"https://api.github.com/repos/nrc/rustfmt/languages","stargazers_url":"https://api.github.com/repos/nrc/rustfmt/stargazers","contributors_url":"https://api.github.com/repos/nrc/rustfmt/contributors","subscribers_url":"https://api.github.com/repos/nrc/rustfmt/subscribers","subscription_url":"https://api.github.com/repos/nrc/rustfmt/subscription","commits_url":"https://api.github.com/repos/nrc/rustfmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/nrc/rustfmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/nrc/rustfmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/nrc/rustfmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/nrc/rustfmt/contents/{+path}","compare_url":"https://api.github.com/repos/nrc/rustfmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nrc/rustfmt/merges","archive_url":"https://api.github.com/repos/nrc/rustfmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nrc/rustfmt/downloads","issues_url":"https://api.github.com/repos/nrc/rustfmt/issues{/number}","pulls_url":"https://api.github.com/repos/nrc/rustfmt/pulls{/number}","milestones_url":"https://api.github.com/repos/nrc/rustfmt/milestones{/number}","notifications_url":"https://api.github.com/repos/nrc/rustfmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nrc/rustfmt/labels{/name}","releases_url":"https://api.github.com/repos/nrc/rustfmt/releases{/id}","created_at":"2015-03-07T22:51:56Z","updated_at":"2015-08-25T13:01:49Z","pushed_at":"2015-08-27T13:11:27Z","git_url":"git://github.com/nrc/rustfmt.git","ssh_url":"git@github.com:nrc/rustfmt.git","clone_url":"https://github.com/nrc/rustfmt.git","svn_url":"https://github.com/nrc/rustfmt","homepage":null,"size":1515,"stargazers_count":281,"watchers_count":281,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":54,"forks":38,"open_issues":54,"watchers":281,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nrc/rustfmt/pulls/208"},"html":{"href":"https://github.com/nrc/rustfmt/pull/208"},"issue":{"href":"https://api.github.com/repos/nrc/rustfmt/issues/208"},"comments":{"href":"https://api.github.com/repos/nrc/rustfmt/issues/208/comments"},"review_comments":{"href":"https://api.github.com/repos/nrc/rustfmt/pulls/208/comments"},"review_comment":{"href":"https://api.github.com/repos/nrc/rustfmt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nrc/rustfmt/pulls/208/commits"},"statuses":{"href":"https://api.github.com/repos/nrc/rustfmt/statuses/c3ab87e7a91c8b547e8c02571e5898a941ce854c"}}}}