Jake Goulding
Jake Goulding
My current thinking is to make tuple variants effectively equivalent to this: ```rust #[derive(Debug, Snafu)] enum Error { #[snafu(context(false))] OneWay { source: AnError }, SameThing(AnError), } ``` That is, a...
Hmm, I don't have a great answer to the _why_, but the good news is that soon this will become moot: ```rust use snafu::prelude::*; #[derive(Debug, Snafu)] struct NeatError { backtrace:...
I suppose we could scan for `Self` ourselves and emit our own more precise error...
That seems reasonable. I was under the impression that `Sink`s were semi-deprecated, which is why I didn't add support for them originally. General shape of how this would work: 1....
You should be able to using `source(from)`. Can you check the [relevant section of the guide](https://docs.rs/snafu/0.4.2/snafu/guide/attributes/index.html#transforming-the-source) and see if that solves your problem?
If that section of the guide helps you, I'd appreciate any feedback on making it easier to discover. All the documentation I could write will be useless if no one...
This is a version of your code that actually compiles. When requesting help from people, I would encourage you to provide these examples yourself; there are many more people asking...
> I want to separate errors in such a way that I don't want to distinguish sources, so many different source errors are possible causes of my single domain error...
> it may be possible to do that by form `#[snafu(from(dyn std::error::Error, Box::new))]` I don't understand what this implementation would look like; would it be possible for you to provide...