From 67e8f1ab57d74bd9f7811b3d3bff40fdf27e5172 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Thu, 30 Mar 2023 19:08:31 -0500 Subject: [PATCH] Export EscapeError from the crate This is useful when manually calling `unscape` --- Changelog.md | 4 ++++ src/lib.rs | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index c068a87e..4b57c10f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -16,6 +16,10 @@ ### Misc Changes +- [#584]: Export `EscapeError` from the crate + +[#584]: https://github.com/tafia/quick-xml/pull/584 + ## 0.28.1 -- 2023-03-19 diff --git a/src/lib.rs b/src/lib.rs index 5d5d51c4..6f3ae7a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,8 +55,7 @@ mod errors; mod escapei; pub mod escape { //! Manage xml character escapes - pub(crate) use crate::escapei::EscapeError; - pub use crate::escapei::{escape, partial_escape, unescape, unescape_with}; + pub use crate::escapei::{escape, partial_escape, unescape, unescape_with, EscapeError}; } pub mod events; pub mod name;