{"action":"created","issue":{"url":"https://api.github.com/repos/nrc/rustfmt/issues/99","labels_url":"https://api.github.com/repos/nrc/rustfmt/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/nrc/rustfmt/issues/99/comments","events_url":"https://api.github.com/repos/nrc/rustfmt/issues/99/events","html_url":"https://github.com/nrc/rustfmt/pull/99","id":86316836,"number":99,"title":"Format expressions with binary and unary operators","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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-08T20:23:19Z","updated_at":"2015-07-02T21:07:33Z","closed_at":"2015-07-02T21:05:25Z","pull_request":{"url":"https://api.github.com/repos/nrc/rustfmt/pulls/99","html_url":"https://github.com/nrc/rustfmt/pull/99","diff_url":"https://github.com/nrc/rustfmt/pull/99.diff","patch_url":"https://github.com/nrc/rustfmt/pull/99.patch"},"body":"I experimented quite a bit and think this is a decent heuristic for formatting binary operations. It's not very clear when a binary operation triggers a line break inside a function call, as it breaks the '1 parameter per line' pattern.\r\n\r\ncc https://github.com/nrc/rustfmt/issues/29, https://github.com/nrc/rustfmt/issues/30"},"comment":{"url":"https://api.github.com/repos/nrc/rustfmt/issues/comments/118168888","html_url":"https://github.com/nrc/rustfmt/pull/99#issuecomment-118168888","issue_url":"https://api.github.com/repos/nrc/rustfmt/issues/99","id":118168888,"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},"created_at":"2015-07-02T21:07:33Z","updated_at":"2015-07-02T21:07:33Z","body":"Hmmm, the problem isn't so much capturing the comments, but rather formatting them. If (when?) we eventually we get comments in the AST, we'll still have to figure this out. Agreed that it's not really important right now, though."}}