{"action":"created","issue":{"url":"https://api.github.com/repos/sp0/rustfmt/issues/12","labels_url":"https://api.github.com/repos/sp0/rustfmt/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/sp0/rustfmt/issues/12/comments","events_url":"https://api.github.com/repos/sp0/rustfmt/issues/12/events","html_url":"https://github.com/sp0/rustfmt/issues/12","id":69501902,"number":12,"title":"long pattern guards","user":{"login":"sp0","id":1902223,"avatar_url":"https://avatars.githubusercontent.com/u/1902223?v=3","gravatar_id":"","url":"https://api.github.com/users/sp0","html_url":"https://github.com/sp0","followers_url":"https://api.github.com/users/sp0/followers","following_url":"https://api.github.com/users/sp0/following{/other_user}","gists_url":"https://api.github.com/users/sp0/gists{/gist_id}","starred_url":"https://api.github.com/users/sp0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sp0/subscriptions","organizations_url":"https://api.github.com/users/sp0/orgs","repos_url":"https://api.github.com/users/sp0/repos","events_url":"https://api.github.com/users/sp0/events{/privacy}","received_events_url":"https://api.github.com/users/sp0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-20T04:07:55Z","updated_at":"2015-04-20T07:05:29Z","closed_at":null,"body":"Current formatting of long pattern gaurds are bad:\r\n```\r\nmatch foo {\r\n    (&Token::ModSep, &Token::OpenDelim(DelimToken::Brace)) if line.typ ==\r\n        LineType::Use => false,\r\n}\r\n```\r\nHow should this be formatted?\r\n"},"comment":{"url":"https://api.github.com/repos/sp0/rustfmt/issues/comments/94375816","html_url":"https://github.com/sp0/rustfmt/issues/12#issuecomment-94375816","issue_url":"https://api.github.com/repos/sp0/rustfmt/issues/12","id":94375816,"user":{"login":"madmalik","id":1328396,"avatar_url":"https://avatars.githubusercontent.com/u/1328396?v=3","gravatar_id":"","url":"https://api.github.com/users/madmalik","html_url":"https://github.com/madmalik","followers_url":"https://api.github.com/users/madmalik/followers","following_url":"https://api.github.com/users/madmalik/following{/other_user}","gists_url":"https://api.github.com/users/madmalik/gists{/gist_id}","starred_url":"https://api.github.com/users/madmalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmalik/subscriptions","organizations_url":"https://api.github.com/users/madmalik/orgs","repos_url":"https://api.github.com/users/madmalik/repos","events_url":"https://api.github.com/users/madmalik/events{/privacy}","received_events_url":"https://api.github.com/users/madmalik/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T07:05:29Z","updated_at":"2015-04-20T07:05:29Z","body":"I think \r\n```\r\nmatch foo {\r\n    (&Token::ModSep, &Token::OpenDelim(DelimToken::Brace)) \r\n        if line.typ == LineType::Use => false,\r\n}\r\n```\r\ncould be the best option. Wrapping the if statement in invisible braces may do the trick?"}}