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
To do this ErrorIterator needs a Display impl, which could require making it a wrapper over Box<dyn Iterator<Item = ValidationError<'a>> + Sync + Send + 'a>, rather than just a type alias (a mild breaking change).
This will allow throwing this error to dyn Error or anyhow without any manual mapping. This impl should probably just print a list of all errors, like the examples show. Roughly:
To do this
ErrorIterator
needs aDisplay
impl, which could require making it a wrapper overBox<dyn Iterator<Item = ValidationError<'a>> + Sync + Send + 'a>
, rather than just a type alias (a mild breaking change).This will allow throwing this error to
dyn Error
oranyhow
without any manual mapping. This impl should probably just print a list of all errors, like the examples show. Roughly:The text was updated successfully, but these errors were encountered: