-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with init_file using anyhow instead of thiserror #205
Comments
Don't upgrade log4rs due to estk/log4rs#205 Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
@0xpr03 I agree that in general |
You could also settle for anyhow, it's the non-specific version with the same constraints. |
@0xpr03 maybe I don't understand your question but we are using anyhow: https://docs.rs/log4rs/1.0.0/log4rs/append/trait.Append.html#tymethod.append |
Ah wait, I just realized my error, I mixed up another issue. I guess we'd have to somehow add the StdError trait ? I'll re-investigate this tomorrow hopefully and try to come up with a better solution. Meanwhile I'll close this prevent further noise. |
What I mean was to use an std:error, fixed size approach like thiserror |
|
Currently init_file does use anyhow which does not implement std::error::Error.
Thus it is impossible to directly convert from this type or use
?
on it when using anything else than anyhow.In my case this is stable_eyre for backtraces.
the trait
std::error::Erroris not implemented for
anyhow::Error``I'd suggest using thiserror which as stated per docs is more suited to libs versus applications.
See also eyre-rs/eyre#31
and dtolnay/anyhow#28
The text was updated successfully, but these errors were encountered: