Closed ccouzens closed 4 years ago
The explicit source() definition is not needed; std::error::Error provides a default implementation (which is just an empty function, like yours).
Therefore, this should suffice (it's coincidentally also what I have in my fork):
impl std::error::Error for TessInitError {}
But yeah this should make it easier to work with errors. :+1:
The explicit source() definition is not needed; std::error::Error provides a default implementation (which is just an empty function, like yours).
Therefore, this should suffice (it's coincidentally also what I have in my fork):
impl std::error::Error for TessInitError {}
But yeah this should make it easier to work with errors. +1
Thanks - I've updated it.
https://github.com/houqp/leptess/issues/12
The error trait makes it easier to work with errors.