{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1099","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1099/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1099/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1099/events","html_url":"https://github.com/rust-lang-nursery/rustfmt/issues/1099","id":165702549,"number":1099,"title":"`if` in match arm should have multi-line formatting like an `if` expression","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars3.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"labels":[{"id":205828944,"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/labels/good-first-issue","name":"good-first-issue","color":"009800","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-15T03:09:09Z","updated_at":"2017-07-11T06:08:50Z","closed_at":"2017-07-11T06:08:50Z","body":"I.e., if a condition spans multiple lines, the lines should be aligned. E.g.,\n\n```\n                ItemKind::Enum(_, Generics { ref ty_params, .. })\n-                    if ty_params.is_empty() &&\n-                    attr::contains_name(&annitem.attrs, \"derive_Copy\") => {\n+                    if ty_params.is_empty()\n+                       && attr::contains_name(&annitem.attrs, \"derive_Copy\") => {\n```\n\nWhilst I've labelled this easy, it is probably good as a second bug, rather than a first.\n"}}
{"actor":{"display_login":"topecongiro"}}