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

Allow using the question-mark / try operator directly on a context selector #367

Open shepmaster opened 1 year ago

shepmaster commented 1 year ago

Right now we do

SomeContextSelector { foo, bar }.fail()?

With the Try trait, we should be able to shorten that to

SomeContextSelector { foo, bar }?