treexml-rs icon indicating copy to clipboard operation
treexml-rs copied to clipboard

treexml::Error does not implement std::error::Error

Open eatnumber1 opened this issue 5 years ago • 0 comments

Per https://doc.rust-lang.org/book/first-edition/error-handling.html#the-error-trait, treexml::Error should implement std::error::Error, but it does not. This prevents converting a treexml::Error into a Box<std::error::Error>, which is useful as a generic return type from a method that can fail due to multiple reasons.

eatnumber1 avatar Oct 19 '18 05:10 eatnumber1