Support AsErrorSource for error sources that don't implement std::error::Error #103
Labels
enhancement
New feature or request
found in the field
A user of SNAFU found this when trying to use it
help wanted
Extra attention is needed
Since starting to use SNAFU I've repeatedly run into libraries whose error types implement Debug + Display but not std::error::Error.
Two options I can think of that might make this easier to deal with for users:
Compat
struct which can just wrap the type, and implements Error if the underlying type implements Debug + Display. (I've been writing types like this as a workaround in my projects.)dyn Debug + Display + 'static
, etc.The text was updated successfully, but these errors were encountered: