{"action":"created","comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/comments/49341201","id":49341201,"diff_hunk":"@@ -72,3 +73,16 @@\n       (spacemacs/declare-prefix-for-mode 'rust-mode \"mg\" \"goto\")\n       (spacemacs/set-leader-keys-for-major-mode 'rust-mode\n         \"gg\" 'racer-find-definition))))\n+\n+(defun rust/init-rustfmt ()\n+  (use-package rustfmt\n+    :defer t\n+    :init\n+    (progn\n+      (if rust-enable-rustfmt-on-save\n+          (spacemacs/add-to-hook 'rust-mode-hook\n+                                 '(rustfmt-enable-on-save)))\n+\n+      (spacemacs/set-leader-keys-for-major-mode 'rust-mode\n+        \"=\" 'rustfmt-format-buffer))\n+    ))","path":"layers/+lang/rust/packages.el","position":24,"original_position":24,"commit_id":"e279cad70343d8fba04ae354ef3855f7f5cd4203","original_commit_id":"e279cad70343d8fba04ae354ef3855f7f5cd4203","user":{"login":"fbergroth","id":1211003,"avatar_url":"https://avatars.githubusercontent.com/u/1211003?v=3","gravatar_id":"","url":"https://api.github.com/users/fbergroth","html_url":"https://github.com/fbergroth","followers_url":"https://api.github.com/users/fbergroth/followers","following_url":"https://api.github.com/users/fbergroth/following{/other_user}","gists_url":"https://api.github.com/users/fbergroth/gists{/gist_id}","starred_url":"https://api.github.com/users/fbergroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbergroth/subscriptions","organizations_url":"https://api.github.com/users/fbergroth/orgs","repos_url":"https://api.github.com/users/fbergroth/repos","events_url":"https://api.github.com/users/fbergroth/events{/privacy}","received_events_url":"https://api.github.com/users/fbergroth/received_events","type":"User","site_admin":false},"body":"No, whitespace between trailing `)`. Format it like this: `\"=\" 'rustfmt-format-buffer))))`","created_at":"2016-01-11T16:24:29Z","updated_at":"2016-01-11T16:24:29Z","html_url":"https://github.com/syl20bnr/spacemacs/pull/4539#discussion_r49341201","pull_request_url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539","_links":{"self":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/comments/49341201"},"html":{"href":"https://github.com/syl20bnr/spacemacs/pull/4539#discussion_r49341201"},"pull_request":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539"}}},"pull_request":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539","id":55630254,"html_url":"https://github.com/syl20bnr/spacemacs/pull/4539","diff_url":"https://github.com/syl20bnr/spacemacs/pull/4539.diff","patch_url":"https://github.com/syl20bnr/spacemacs/pull/4539.patch","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4539","number":4539,"state":"open","locked":false,"title":"rust: format rust code using rustfmt","user":{"login":"isphinx","id":8200185,"avatar_url":"https://avatars.githubusercontent.com/u/8200185?v=3","gravatar_id":"","url":"https://api.github.com/users/isphinx","html_url":"https://github.com/isphinx","followers_url":"https://api.github.com/users/isphinx/followers","following_url":"https://api.github.com/users/isphinx/following{/other_user}","gists_url":"https://api.github.com/users/isphinx/gists{/gist_id}","starred_url":"https://api.github.com/users/isphinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isphinx/subscriptions","organizations_url":"https://api.github.com/users/isphinx/orgs","repos_url":"https://api.github.com/users/isphinx/repos","events_url":"https://api.github.com/users/isphinx/events{/privacy}","received_events_url":"https://api.github.com/users/isphinx/received_events","type":"User","site_admin":false},"body":"rust: add auto format feature","created_at":"2016-01-11T14:46:21Z","updated_at":"2016-01-11T16:24:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"372f04cffb047b7f8ab22cbbc411d081336cddea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539/commits","review_comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539/comments","review_comment_url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4539/comments","statuses_url":"https://api.github.com/repos/syl20bnr/spacemacs/statuses/e279cad70343d8fba04ae354ef3855f7f5cd4203","head":{"label":"isphinx:rustfmt","ref":"rustfmt","sha":"e279cad70343d8fba04ae354ef3855f7f5cd4203","user":{"login":"isphinx","id":8200185,"avatar_url":"https://avatars.githubusercontent.com/u/8200185?v=3","gravatar_id":"","url":"https://api.github.com/users/isphinx","html_url":"https://github.com/isphinx","followers_url":"https://api.github.com/users/isphinx/followers","following_url":"https://api.github.com/users/isphinx/following{/other_user}","gists_url":"https://api.github.com/users/isphinx/gists{/gist_id}","starred_url":"https://api.github.com/users/isphinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isphinx/subscriptions","organizations_url":"https://api.github.com/users/isphinx/orgs","repos_url":"https://api.github.com/users/isphinx/repos","events_url":"https://api.github.com/users/isphinx/events{/privacy}","received_events_url":"https://api.github.com/users/isphinx/received_events","type":"User","site_admin":false},"repo":{"id":49130927,"name":"spacemacs","full_name":"isphinx/spacemacs","owner":{"login":"isphinx","id":8200185,"avatar_url":"https://avatars.githubusercontent.com/u/8200185?v=3","gravatar_id":"","url":"https://api.github.com/users/isphinx","html_url":"https://github.com/isphinx","followers_url":"https://api.github.com/users/isphinx/followers","following_url":"https://api.github.com/users/isphinx/following{/other_user}","gists_url":"https://api.github.com/users/isphinx/gists{/gist_id}","starred_url":"https://api.github.com/users/isphinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isphinx/subscriptions","organizations_url":"https://api.github.com/users/isphinx/orgs","repos_url":"https://api.github.com/users/isphinx/repos","events_url":"https://api.github.com/users/isphinx/events{/privacy}","received_events_url":"https://api.github.com/users/isphinx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isphinx/spacemacs","description":"An Emacs distribution - The best editor is neither Emacs nor Vim,  it's Emacs *and* Vim!","fork":true,"url":"https://api.github.com/repos/isphinx/spacemacs","forks_url":"https://api.github.com/repos/isphinx/spacemacs/forks","keys_url":"https://api.github.com/repos/isphinx/spacemacs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isphinx/spacemacs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isphinx/spacemacs/teams","hooks_url":"https://api.github.com/repos/isphinx/spacemacs/hooks","issue_events_url":"https://api.github.com/repos/isphinx/spacemacs/issues/events{/number}","events_url":"https://api.github.com/repos/isphinx/spacemacs/events","assignees_url":"https://api.github.com/repos/isphinx/spacemacs/assignees{/user}","branches_url":"https://api.github.com/repos/isphinx/spacemacs/branches{/branch}","tags_url":"https://api.github.com/repos/isphinx/spacemacs/tags","blobs_url":"https://api.github.com/repos/isphinx/spacemacs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isphinx/spacemacs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isphinx/spacemacs/git/refs{/sha}","trees_url":"https://api.github.com/repos/isphinx/spacemacs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isphinx/spacemacs/statuses/{sha}","languages_url":"https://api.github.com/repos/isphinx/spacemacs/languages","stargazers_url":"https://api.github.com/repos/isphinx/spacemacs/stargazers","contributors_url":"https://api.github.com/repos/isphinx/spacemacs/contributors","subscribers_url":"https://api.github.com/repos/isphinx/spacemacs/subscribers","subscription_url":"https://api.github.com/repos/isphinx/spacemacs/subscription","commits_url":"https://api.github.com/repos/isphinx/spacemacs/commits{/sha}","git_commits_url":"https://api.github.com/repos/isphinx/spacemacs/git/commits{/sha}","comments_url":"https://api.github.com/repos/isphinx/spacemacs/comments{/number}","issue_comment_url":"https://api.github.com/repos/isphinx/spacemacs/issues/comments{/number}","contents_url":"https://api.github.com/repos/isphinx/spacemacs/contents/{+path}","compare_url":"https://api.github.com/repos/isphinx/spacemacs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isphinx/spacemacs/merges","archive_url":"https://api.github.com/repos/isphinx/spacemacs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isphinx/spacemacs/downloads","issues_url":"https://api.github.com/repos/isphinx/spacemacs/issues{/number}","pulls_url":"https://api.github.com/repos/isphinx/spacemacs/pulls{/number}","milestones_url":"https://api.github.com/repos/isphinx/spacemacs/milestones{/number}","notifications_url":"https://api.github.com/repos/isphinx/spacemacs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isphinx/spacemacs/labels{/name}","releases_url":"https://api.github.com/repos/isphinx/spacemacs/releases{/id}","created_at":"2016-01-06T11:22:38Z","updated_at":"2016-01-06T11:22:41Z","pushed_at":"2016-01-11T14:44:55Z","git_url":"git://github.com/isphinx/spacemacs.git","ssh_url":"git@github.com:isphinx/spacemacs.git","clone_url":"https://github.com/isphinx/spacemacs.git","svn_url":"https://github.com/isphinx/spacemacs","homepage":"https://twitter.com/spacemacs","size":25927,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","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":"syl20bnr:develop","ref":"develop","sha":"59319f9e8b5f7c004800331745bf1f721b6b612f","user":{"login":"syl20bnr","id":1243537,"avatar_url":"https://avatars.githubusercontent.com/u/1243537?v=3","gravatar_id":"","url":"https://api.github.com/users/syl20bnr","html_url":"https://github.com/syl20bnr","followers_url":"https://api.github.com/users/syl20bnr/followers","following_url":"https://api.github.com/users/syl20bnr/following{/other_user}","gists_url":"https://api.github.com/users/syl20bnr/gists{/gist_id}","starred_url":"https://api.github.com/users/syl20bnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syl20bnr/subscriptions","organizations_url":"https://api.github.com/users/syl20bnr/orgs","repos_url":"https://api.github.com/users/syl20bnr/repos","events_url":"https://api.github.com/users/syl20bnr/events{/privacy}","received_events_url":"https://api.github.com/users/syl20bnr/received_events","type":"User","site_admin":false},"repo":{"id":7212645,"name":"spacemacs","full_name":"syl20bnr/spacemacs","owner":{"login":"syl20bnr","id":1243537,"avatar_url":"https://avatars.githubusercontent.com/u/1243537?v=3","gravatar_id":"","url":"https://api.github.com/users/syl20bnr","html_url":"https://github.com/syl20bnr","followers_url":"https://api.github.com/users/syl20bnr/followers","following_url":"https://api.github.com/users/syl20bnr/following{/other_user}","gists_url":"https://api.github.com/users/syl20bnr/gists{/gist_id}","starred_url":"https://api.github.com/users/syl20bnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syl20bnr/subscriptions","organizations_url":"https://api.github.com/users/syl20bnr/orgs","repos_url":"https://api.github.com/users/syl20bnr/repos","events_url":"https://api.github.com/users/syl20bnr/events{/privacy}","received_events_url":"https://api.github.com/users/syl20bnr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/syl20bnr/spacemacs","description":"A community-driven Emacs distribution - The best editor is neither Emacs nor Vim,  it's Emacs *and* Vim!","fork":false,"url":"https://api.github.com/repos/syl20bnr/spacemacs","forks_url":"https://api.github.com/repos/syl20bnr/spacemacs/forks","keys_url":"https://api.github.com/repos/syl20bnr/spacemacs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syl20bnr/spacemacs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syl20bnr/spacemacs/teams","hooks_url":"https://api.github.com/repos/syl20bnr/spacemacs/hooks","issue_events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/events{/number}","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/events","assignees_url":"https://api.github.com/repos/syl20bnr/spacemacs/assignees{/user}","branches_url":"https://api.github.com/repos/syl20bnr/spacemacs/branches{/branch}","tags_url":"https://api.github.com/repos/syl20bnr/spacemacs/tags","blobs_url":"https://api.github.com/repos/syl20bnr/spacemacs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syl20bnr/spacemacs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syl20bnr/spacemacs/git/refs{/sha}","trees_url":"https://api.github.com/repos/syl20bnr/spacemacs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syl20bnr/spacemacs/statuses/{sha}","languages_url":"https://api.github.com/repos/syl20bnr/spacemacs/languages","stargazers_url":"https://api.github.com/repos/syl20bnr/spacemacs/stargazers","contributors_url":"https://api.github.com/repos/syl20bnr/spacemacs/contributors","subscribers_url":"https://api.github.com/repos/syl20bnr/spacemacs/subscribers","subscription_url":"https://api.github.com/repos/syl20bnr/spacemacs/subscription","commits_url":"https://api.github.com/repos/syl20bnr/spacemacs/commits{/sha}","git_commits_url":"https://api.github.com/repos/syl20bnr/spacemacs/git/commits{/sha}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/comments{/number}","issue_comment_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments{/number}","contents_url":"https://api.github.com/repos/syl20bnr/spacemacs/contents/{+path}","compare_url":"https://api.github.com/repos/syl20bnr/spacemacs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syl20bnr/spacemacs/merges","archive_url":"https://api.github.com/repos/syl20bnr/spacemacs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syl20bnr/spacemacs/downloads","issues_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues{/number}","pulls_url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls{/number}","milestones_url":"https://api.github.com/repos/syl20bnr/spacemacs/milestones{/number}","notifications_url":"https://api.github.com/repos/syl20bnr/spacemacs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/labels{/name}","releases_url":"https://api.github.com/repos/syl20bnr/spacemacs/releases{/id}","created_at":"2012-12-17T21:34:03Z","updated_at":"2016-01-11T16:01:21Z","pushed_at":"2016-01-11T16:02:21Z","git_url":"git://github.com/syl20bnr/spacemacs.git","ssh_url":"git@github.com:syl20bnr/spacemacs.git","clone_url":"https://github.com/syl20bnr/spacemacs.git","svn_url":"https://github.com/syl20bnr/spacemacs","homepage":"http://spacemacs.org","size":34439,"stargazers_count":5394,"watchers_count":5394,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1339,"mirror_url":null,"open_issues_count":561,"forks":1339,"open_issues":561,"watchers":5394,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539"},"html":{"href":"https://github.com/syl20bnr/spacemacs/pull/4539"},"issue":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4539"},"comments":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4539/comments"},"review_comments":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539/comments"},"review_comment":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/4539/commits"},"statuses":{"href":"https://api.github.com/repos/syl20bnr/spacemacs/statuses/e279cad70343d8fba04ae354ef3855f7f5cd4203"}}}}