{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust-mode/issues/198","repository_url":"https://api.github.com/repos/rust-lang/rust-mode","labels_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/198/comments","events_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/198/events","html_url":"https://github.com/rust-lang/rust-mode/pull/198","id":215275642,"number":198,"title":"fix rust indentation bug","user":{"login":"tromey","id":1557670,"avatar_url":"https://avatars0.githubusercontent.com/u/1557670?v=3","gravatar_id":"","url":"https://api.github.com/users/tromey","html_url":"https://github.com/tromey","followers_url":"https://api.github.com/users/tromey/followers","following_url":"https://api.github.com/users/tromey/following{/other_user}","gists_url":"https://api.github.com/users/tromey/gists{/gist_id}","starred_url":"https://api.github.com/users/tromey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tromey/subscriptions","organizations_url":"https://api.github.com/users/tromey/orgs","repos_url":"https://api.github.com/users/tromey/repos","events_url":"https://api.github.com/users/tromey/events{/privacy}","received_events_url":"https://api.github.com/users/tromey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-19T16:30:19Z","updated_at":"2017-04-12T03:43:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust-mode/pulls/198","html_url":"https://github.com/rust-lang/rust-mode/pull/198","diff_url":"https://github.com/rust-lang/rust-mode/pull/198.diff","patch_url":"https://github.com/rust-lang/rust-mode/pull/198.patch"},"body":"This patch fixes a bug I found where rust-mode would misindent code\r\nlike:\r\n\r\nfn each_split_within<'a, F>(ss: &'a str, lim: usize, mut it: F)\r\n                            -> bool where F: FnMut(&'a str) -> bool {\r\n}\r\n\r\nfn test_split_within() {\r\n}\r\n\r\nIn particular the second \"fn\" would be indented a level.\r\n\r\nOn the \"fn\" line, rust-mode-indent-line was calling\r\nrust-beginning-of-defun, which would go to the previous defun.  Fixing\r\nthis required moving the definition of rust-top-item-beg-re higher in\r\nthe file, before its first use (recent versions of Emacs insist on\r\nthis).  And, this required removing the \"^\" from this regexp, which is\r\nok because the sole use is already adding a \"^\".\r\n\r\nThis patch includes the above as a new test case."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust-mode/issues/comments/293465690","html_url":"https://github.com/rust-lang/rust-mode/pull/198#issuecomment-293465690","issue_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/198","id":293465690,"user":{"login":"tromey","id":1557670,"avatar_url":"https://avatars0.githubusercontent.com/u/1557670?v=3","gravatar_id":"","url":"https://api.github.com/users/tromey","html_url":"https://github.com/tromey","followers_url":"https://api.github.com/users/tromey/followers","following_url":"https://api.github.com/users/tromey/following{/other_user}","gists_url":"https://api.github.com/users/tromey/gists{/gist_id}","starred_url":"https://api.github.com/users/tromey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tromey/subscriptions","organizations_url":"https://api.github.com/users/tromey/orgs","repos_url":"https://api.github.com/users/tromey/repos","events_url":"https://api.github.com/users/tromey/events{/privacy}","received_events_url":"https://api.github.com/users/tromey/received_events","type":"User","site_admin":false},"created_at":"2017-04-12T03:43:36Z","updated_at":"2017-04-12T03:43:36Z","body":"Merging myself since it is approved."}}
{"actor":{"display_login":"tromey"}}