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
This means that the closure can only return errors defined by quick_xml.
At present there doesn't seem to be any option within quick_xml::Error for wrapping an application generated error, so my options are limited if I want to bubble up some internal error.
One solution would be to provide another error variant, CustomError<dyn Box<std::error::Error>>, and ideally also provide a From implementation along with it so that ? can do its magic.
The text was updated successfully, but these errors were encountered:
I think, that we generally need to review our Error and DeError types because they looks random and inconsistent. It will be good to address this issue during that redesign.
write_inner_content
is defined like this:This means that the
closure
can only return errors defined by quick_xml.At present there doesn't seem to be any option within
quick_xml::Error
for wrapping an application generated error, so my options are limited if I want to bubble up some internal error.One solution would be to provide another error variant,
CustomError<dyn Box<std::error::Error>>
, and ideally also provide aFrom
implementation along with it so that?
can do its magic.The text was updated successfully, but these errors were encountered: