{"action":"created","issue":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/339","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/339/comments","events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/339/events","html_url":"https://github.com/kbknapp/clap-rs/pull/339","id":114881002,"number":339,"title":"Huge Cleanup","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/R:%20ready%20to%20merge","name":"R: ready to merge","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"Vinatorul","id":6770624,"avatar_url":"https://avatars.githubusercontent.com/u/6770624?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinatorul","html_url":"https://github.com/Vinatorul","followers_url":"https://api.github.com/users/Vinatorul/followers","following_url":"https://api.github.com/users/Vinatorul/following{/other_user}","gists_url":"https://api.github.com/users/Vinatorul/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinatorul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinatorul/subscriptions","organizations_url":"https://api.github.com/users/Vinatorul/orgs","repos_url":"https://api.github.com/users/Vinatorul/repos","events_url":"https://api.github.com/users/Vinatorul/events{/privacy}","received_events_url":"https://api.github.com/users/Vinatorul/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kbknapp/clap-rs/milestones/10","html_url":"https://github.com/kbknapp/clap-rs/milestones/1.5","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/milestones/10/labels","id":1333728,"number":10,"title":"1.5","description":"","creator":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-10-01T18:44:13Z","updated_at":"2015-11-11T20:29:05Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-11-03T18:34:24Z","updated_at":"2015-11-12T15:53:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kbknapp/clap-rs/pulls/339","html_url":"https://github.com/kbknapp/clap-rs/pull/339","diff_url":"https://github.com/kbknapp/clap-rs/pull/339.diff","patch_url":"https://github.com/kbknapp/clap-rs/pull/339.patch"},"body":"Various cleanups and refactorings, the biggest of which (so far) is error handling, although I'm not 100% sure if I'm happy with the implementation yet or not. It's a big improvement from previous versions, but I think it can get better.\r\n\r\n~~**DO NOT MERGE**~~"},"comment":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/comments/156146402","html_url":"https://github.com/kbknapp/clap-rs/pull/339#issuecomment-156146402","issue_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/339","id":156146402,"user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T15:53:39Z","updated_at":"2015-11-12T15:53:39Z","body":"The `Default` trait isn't new, I just don't really use it too much. What it's actually taking advantage of is a little known feature (also not new) to construct a strict from another struct.\r\n\r\nI.e.\r\n\r\n```rust\r\nstruct Foo {\r\n    a: i32,\r\n    b: i32\r\n}\r\n\r\nlet f = Foo { a: 20, b: 50 };\r\nlet f2 = Foo { a: 10 ..f };\r\n```"}}