shepmaster / snafu

Easily assign underlying errors into domain-specific errors while adding context
https://docs.rs/snafu/
Apache License 2.0
1.4k stars 60 forks source link

Support shorthand interpolation syntax for `#[snafu(display(...))]` #309

Closed seritools closed 2 years ago

seritools commented 2 years ago

thiserror supports a shorthand syntax for interpolating members into the display string.

It would be nice to have this feature in snafu as well, and would also reduce manual labor required for people migrating to snafu.