Description
For idiomatic interop with the wider Rust ecosystem (e.g., anyhow, ? operator across crate boundaries), XmlError should implement std::error::Error (behind the std feature) and core::fmt::Display unconditionally. Verify current state and fill any gaps.
Acceptance Criteria
XmlError implements Display in both std and no_std builds
XmlError implements std::error::Error when the std feature is enabled
- A unit test confirms
XmlError can be used with Box<dyn std::error::Error>
cargo clippy and cargo test pass with no new warnings
Helpful Resources & Context
Implementation Notes
Gate the std::error::Error impl behind #[cfg(feature = "std")] to preserve no_std compatibility from Phase 9.
Description
For idiomatic interop with the wider Rust ecosystem (e.g.,
anyhow,?operator across crate boundaries),XmlErrorshould implementstd::error::Error(behind thestdfeature) andcore::fmt::Displayunconditionally. Verify current state and fill any gaps.Acceptance Criteria
XmlErrorimplementsDisplayin bothstdandno_stdbuildsXmlErrorimplementsstd::error::Errorwhen thestdfeature is enabledXmlErrorcan be used withBox<dyn std::error::Error>cargo clippyandcargo testpass with no new warningsHelpful Resources & Context
crates/tinyxml2/src/Implementation Notes
Gate the
std::error::Errorimpl behind#[cfg(feature = "std")]to preserveno_stdcompatibility from Phase 9.