{"action":"created","issue":{"url":"https://api.github.com/repos/brson/error-chain/issues/86","repository_url":"https://api.github.com/repos/brson/error-chain","labels_url":"https://api.github.com/repos/brson/error-chain/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/brson/error-chain/issues/86/comments","events_url":"https://api.github.com/repos/brson/error-chain/issues/86/events","html_url":"https://github.com/brson/error-chain/pull/86","id":193303706,"number":86,"title":"Allow boxed errors in error chain","user":{"login":"Jascha-N","id":5495003,"avatar_url":"https://avatars.githubusercontent.com/u/5495003?v=3","gravatar_id":"","url":"https://api.github.com/users/Jascha-N","html_url":"https://github.com/Jascha-N","followers_url":"https://api.github.com/users/Jascha-N/followers","following_url":"https://api.github.com/users/Jascha-N/following{/other_user}","gists_url":"https://api.github.com/users/Jascha-N/gists{/gist_id}","starred_url":"https://api.github.com/users/Jascha-N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jascha-N/subscriptions","organizations_url":"https://api.github.com/users/Jascha-N/orgs","repos_url":"https://api.github.com/users/Jascha-N/repos","events_url":"https://api.github.com/users/Jascha-N/events{/privacy}","received_events_url":"https://api.github.com/users/Jascha-N/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-03T17:51:20Z","updated_at":"2016-12-03T18:48:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/brson/error-chain/pulls/86","html_url":"https://github.com/brson/error-chain/pull/86","diff_url":"https://github.com/brson/error-chain/pull/86.diff","patch_url":"https://github.com/brson/error-chain/pull/86.patch"},"body":"Add support for `Result<T, Into<Box<Error + Send>>>` in `ResultExt`. I had to use a messy workaround to get both the static dispatch version and `Into<Box<...>>` version to work. Since the E type parameter of ResultExt is essentially unused, I used this parameter as a marker to work around the fact that an error could potentially implement both `Error + Send + 'static` *and* `Into<Box<Error + Send>>`. In this situation automatic type inference might fail and you have to specify the parameter manually as either `Static` or `Boxed`. Some documentation should probably be added.\r\n\r\nEDIT: `std` contains the following conversions:\r\n```rust\r\nimpl<'a, E: Error + 'a> From<E> for Box<Error + 'a>\r\nimpl<'a, E: Error + Send + Sync + 'a> From<E> for Box<Error + Send + Sync + 'a>\r\n```\r\nThese are unfortunately either too restrictive or too general."},"comment":{"url":"https://api.github.com/repos/brson/error-chain/issues/comments/264657588","html_url":"https://github.com/brson/error-chain/pull/86#issuecomment-264657588","issue_url":"https://api.github.com/repos/brson/error-chain/issues/86","id":264657588,"user":{"login":"Yamakaky","id":1327378,"avatar_url":"https://avatars.githubusercontent.com/u/1327378?v=3","gravatar_id":"","url":"https://api.github.com/users/Yamakaky","html_url":"https://github.com/Yamakaky","followers_url":"https://api.github.com/users/Yamakaky/followers","following_url":"https://api.github.com/users/Yamakaky/following{/other_user}","gists_url":"https://api.github.com/users/Yamakaky/gists{/gist_id}","starred_url":"https://api.github.com/users/Yamakaky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yamakaky/subscriptions","organizations_url":"https://api.github.com/users/Yamakaky/orgs","repos_url":"https://api.github.com/users/Yamakaky/repos","events_url":"https://api.github.com/users/Yamakaky/events{/privacy}","received_events_url":"https://api.github.com/users/Yamakaky/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T18:48:35Z","updated_at":"2016-12-03T18:48:35Z","body":"Also, please add a test for this feature."}}
{"actor":{"display_login":"Yamakaky"}}