{"action":"opened","issue":{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/671","repository_url":"https://api.github.com/repos/intellij-rust/intellij-rust","labels_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/671/comments","events_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/671/events","html_url":"https://github.com/intellij-rust/intellij-rust/issues/671","id":177156386,"number":671,"title":"Option to align return types with arguments","user":{"login":"matklad","id":1711539,"avatar_url":"https://avatars.githubusercontent.com/u/1711539?v=3","gravatar_id":"","url":"https://api.github.com/users/matklad","html_url":"https://github.com/matklad","followers_url":"https://api.github.com/users/matklad/followers","following_url":"https://api.github.com/users/matklad/following{/other_user}","gists_url":"https://api.github.com/users/matklad/gists{/gist_id}","starred_url":"https://api.github.com/users/matklad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matklad/subscriptions","organizations_url":"https://api.github.com/users/matklad/orgs","repos_url":"https://api.github.com/users/matklad/repos","events_url":"https://api.github.com/users/matklad/events{/privacy}","received_events_url":"https://api.github.com/users/matklad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/labels/up%20for%20grab","name":"up for grab","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-15T11:52:38Z","updated_at":"2016-09-15T11:52:38Z","closed_at":null,"body":"Here is a possible formatting of function headers:\r\n\r\n```\r\npub fn compile_ws<'a>(ws: &Workspace<'a>,\r\n                      source: Option<Box<Source + 'a>>,\r\n                      options: &CompileOptions<'a>)\r\n                      -> CargoResult<ops::Compilation<'a>> {\r\n```\r\n\r\nNote that `->` is aligned to the first argument. Would be great to support this style!\r\n\r\nCode for formatting is here: https://github.com/intellij-rust/intellij-rust/blob/f9312b2d61534a898bdc95cda6276df9182d7ef1/src/main/kotlin/org/rust/ide/formatter/impl/alignment.kt"}}
{"actor":{"display_login":"matklad"}}