Derive PartialEq for Error - #98
Conversation
This helps when wrapping this crate's Error struct in another crate.
|
I don't know if comparing the string description of the underlying error is the best idea. |
|
Is there an approach that you prefer that I can help with? I guess implemeting |
|
Why do you need to compare your wrapped error for equality? There are a lot of error types in the wild that cannot do that (e.g. |
|
Yeah I know the problem with As I say above, ultimately there are ways for me to work around this, but since the error type in this crate is fairly simple and doesn't use |
This helps when wrapping this crate's Error struct in another crate. Not sure if you'd like a test to cover this too, but if so just let me know.