|
|
|
|
|
by skavi
545 days ago
|
|
Yup. I absolutely would throw `#[from]` on everything when I started using thiserror, but now only do so in incredibly obvious cases like enum CarWontMove {
EngineTroubles(EngineTroubles),
WheelsFellOff(WheelsFellOff),
}
Even then, there’s often some additional context you can affix at that higher level. |
|
[0]: https://docs.rs/snafu/latest/snafu/derive.Snafu.html#disabli...
[1]: https://docs.rs/snafu/latest/snafu/derive.Snafu.html#delegat...