Skip to content

Commit 9ebd063

Browse files
committed
Update quick-xml to 0.37
1 parent 4b75d0c commit 9ebd063

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Remove ambiguous statements about escaping from documentation. [`#171`](https://github.com/rust-syndication/rss/pull/171)
6+
- Update `quick-xml` to 0.37. [`#172`](https://github.com/rust-syndication/rss/pull/172)
67

78
## 2.0.9 - 2024-08-28
89

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ validation = ["chrono", "chrono/std", "url", "mime"]
2222
with-serde = ["serde", "atom_syndication/with-serde"]
2323

2424
[dependencies]
25-
quick-xml = { version = "0.36", features = ["encoding"] }
25+
quick-xml = { version = "0.37", features = ["encoding"] }
2626
atom_syndication = { version = "0.12", optional = true }
2727
chrono = { version = "0.4.31", optional = true, default-features = false, features = ["alloc"] }
2828
derive_builder = { version = "0.20", optional = true }

src/error.rs

+14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
use std::error::Error as StdError;
99
use std::fmt;
10+
use std::io;
1011
use std::str::Utf8Error;
12+
use std::sync::Arc;
1113

1214
use quick_xml::Error as XmlError;
1315

@@ -51,6 +53,18 @@ impl From<XmlError> for Error {
5153
}
5254
}
5355

56+
impl From<quick_xml::encoding::EncodingError> for Error {
57+
fn from(err: quick_xml::encoding::EncodingError) -> Error {
58+
Error::Xml(XmlError::Encoding(err))
59+
}
60+
}
61+
62+
impl From<io::Error> for Error {
63+
fn from(err: io::Error) -> Error {
64+
Error::Xml(XmlError::Io(Arc::new(err)))
65+
}
66+
}
67+
5468
impl From<Utf8Error> for Error {
5569
fn from(err: Utf8Error) -> Error {
5670
Error::Utf8(err)

0 commit comments

Comments
 (0)