From 7765b9fd6af03bae4c4a5b37417babd45d3bf5da Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Wed, 28 Aug 2024 00:14:26 +0200 Subject: [PATCH] Update quick-xml to 0.36 --- CHANGELOG.md | 1 + Cargo.toml | 2 +- src/util.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 618957a..83adcc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Update `quick-xml` to `0.32`. [`#82`](https://github.com/rust-syndication/atom/pull/82) +- Update `quick-xml` to `0.36`. [`#83`](https://github.com/rust-syndication/atom/pull/83) ## 0.12.3 - 2024-05-11 diff --git a/Cargo.toml b/Cargo.toml index 4abdd8b..1f80a98 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.32", features = ["encoding"] } +quick-xml = { version = "0.36", 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/util.rs b/src/util.rs index 79a1fce..2299f37 100644 --- a/src/util.rs +++ b/src/util.rs @@ -30,7 +30,7 @@ pub(crate) fn attr_value<'s, 'r, B: BufRead>( reader: &'r Reader, ) -> Result, Error> { let value = attr - .decode_and_unescape_value(reader) + .decode_and_unescape_value(reader.decoder()) .map_err(XmlError::new)?; Ok(value) }