From d2d980a713b0847aaac50bef4d8b575e102cb067 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 16 Nov 2024 01:12:34 +0100 Subject: [PATCH] Update quick-xml to 0.37 --- CHANGELOG.md | 1 + Cargo.toml | 2 +- src/error.rs | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d882aa..e48d967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Remove ambiguous statements about escaping from documentation. [`#85`](https://github.com/rust-syndication/atom/pull/85) +- Update `quick-xml` to `0.37`. [`#86`](https://github.com/rust-syndication/atom/pull/86) ## 0.12.4 - 2024-08-28 diff --git a/Cargo.toml b/Cargo.toml index 1f7796d..48e87ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ include = ["src/*", "Cargo.toml", "LICENSE-MIT", "LICENSE-APACHE", "README.md"] [dependencies] diligent-date-parser = "0.1.3" -quick-xml = { version = "0.36", features = ["encoding"] } +quick-xml = { version = "0.37", features = ["encoding"] } chrono = { version = "0.4", default-features = false, features = ["alloc"] } derive_builder = { version = "0.20", optional = true } never = { version = "0.1", optional = true } diff --git a/src/error.rs b/src/error.rs index e084217..c112235 100644 --- a/src/error.rs +++ b/src/error.rs @@ -64,11 +64,11 @@ impl From for Error { } #[derive(Debug)] -pub struct XmlError(quick_xml::Error); +pub struct XmlError(Box); impl XmlError { - pub(crate) fn new(err: quick_xml::Error) -> Self { - Self(err) + pub(crate) fn new(err: impl StdError + 'static) -> Self { + Self(Box::new(err)) } }