You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with enums for error reporting it would be super useful if the default implementation of Show for enums could be customized so that you can skip the contained data. For instance if you have a MyError(SomeOtherError) it is interesting to just get MyError instead of MyError(SomeOtherError { foo: 42 }) or whatever is contained in there.
The text was updated successfully, but these errors were encountered:
When working with enums for error reporting it would be super useful if the default implementation of
Show
for enums could be customized so that you can skip the contained data. For instance if you have aMyError(SomeOtherError)
it is interesting to just getMyError
instead ofMyError(SomeOtherError { foo: 42 })
or whatever is contained in there.The text was updated successfully, but these errors were encountered: