Handwrite Error conformance so thiserror is not needed #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#17 removed
failure
and instead just conformedError
tostd::error::Error
, which seems like a great change. Before seeing that change, I worked on a similar change forrss
in rust-syndication/rss#82, although my approach turned out to be slightly different.thiserror
was used to implement the trait here, and while it seems like an awesome crate, I'm not sure the convenience is worth it for the cost of adding additional dependencies. Every dependency to this crate means more crates that users have to download, more versions for them to deal with, and longer compile times.I handwrote an implementation of the trait, and while it's definitely more boilerplate, I don't think the ~30 extra lines are much of a maintenance burden, and it seems worth it to mean one less dependency in users' lockfiles.