Closed jjedelsky closed 7 years ago
@Yamakaky error-chain doesn't support generic errorkind, right?
That is right, it doesn't.
Right, so error_chain errorkinds would no longer be guaranteed to be able to hold derive_error_chain errorkinds as chainable links. (Not a blocker, but worth noting.)
I thing it should be enough not to implement From<generic> for Error
.
Thanks!
I made some tiny changes:
std::collections::HashSet
since I prefer to use fully-qualified paths.collect()
instead of a for
-loop.some_mod::T
.
This pull adds support for generics. See tests for examples.