{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/3125","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/3125/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/3125/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/3125/events","html_url":"https://github.com/rust-lang-nursery/rustfmt/issues/3125","id":372452169,"node_id":"MDU6SXNzdWUzNzI0NTIxNjk=","number":3125,"title":"Unnecessary split of struct enum variant in match","user":{"login":"crumblingstatue","id":1521976,"node_id":"MDQ6VXNlcjE1MjE5NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/1521976?v=4","gravatar_id":"","url":"https://api.github.com/users/crumblingstatue","html_url":"https://github.com/crumblingstatue","followers_url":"https://api.github.com/users/crumblingstatue/followers","following_url":"https://api.github.com/users/crumblingstatue/following{/other_user}","gists_url":"https://api.github.com/users/crumblingstatue/gists{/gist_id}","starred_url":"https://api.github.com/users/crumblingstatue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crumblingstatue/subscriptions","organizations_url":"https://api.github.com/users/crumblingstatue/orgs","repos_url":"https://api.github.com/users/crumblingstatue/repos","events_url":"https://api.github.com/users/crumblingstatue/events{/privacy}","received_events_url":"https://api.github.com/users/crumblingstatue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-22T09:32:57Z","updated_at":"2018-10-22T21:38:55Z","closed_at":"2018-10-22T21:38:55Z","author_association":"CONTRIBUTOR","body":"input:\r\n```Rust\r\nfn main() {\r\n    match event {\r\n        Event::KeyPressed { code: Key::Space, .. } => {\r\n            println!(\"Space pressed\");\r\n        }\r\n    }\r\n}\r\n\r\n```\r\n\r\noutput:\r\n\r\n```Rust\r\nfn main() {\r\n    match event {\r\n        Event::KeyPressed {\r\n            code: Key::Space, ..\r\n        } => {\r\n            println!(\"Space pressed\");\r\n        }\r\n    }\r\n}\r\n\r\n```\r\n\r\nIf you replace `Key::Space` with `Key::Spa` to reduce the width from 55 columns to 53, rustfmt leaves it alone.\r\n\r\nIs 54 columns the arbitrary width limit at which we must split? Shouldn't it be closer to the actual width limit, which is 100 by default?"}}
{"actor":{"display_login":"nrc"}}