Closed ThinkChaos closed 1 year ago
Box<dyn std::error::Error> is not recommended for libraries as it makes it difficult for consumers to deal with errors. Using thiserror helps making a custom error type painless, and thiserror doesn't appear in the API at all.
Box<dyn std::error::Error>
thiserror
Addressed in #5
Box<dyn std::error::Error>
is not recommended for libraries as it makes it difficult for consumers to deal with errors. Usingthiserror
helps making a custom error type painless, andthiserror
doesn't appear in the API at all.