Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Jun 21, 2024
1 parent dd98373 commit 93324fb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Update `quick-xml` to `0.32`. [`#82`](https://github.com/rust-syndication/atom/pull/82)

## 0.12.3 - 2024-05-11

- Bump MSRV (Minimum Supported Rust Version) from 1.56.0 to 1.57.0 [`#80`](https://github.com/rust-syndication/atom/pull/80)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.31", features = ["encoding"] }
quick-xml = { version = "0.32", features = ["encoding"] }
chrono = { version = "0.4", default-features = false, features = ["alloc"] }
derive_builder = { version = "0.20", optional = true }
never = { version = "0.1", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ mod test {

fn from_xml(xml: &str) -> Result<Content, Error> {
let mut reader = Reader::from_reader(xml.as_bytes());
reader.expand_empty_elements(true);
reader.config_mut().expand_empty_elements = true;

loop {
let mut buf = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion src/feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Feed {
/// ```
pub fn read_from<B: BufRead>(reader: B) -> Result<Feed, Error> {
let mut reader = Reader::from_reader(reader);
reader.expand_empty_elements(true);
reader.config_mut().expand_empty_elements = true;

let mut buf = Vec::new();

Expand Down
10 changes: 5 additions & 5 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn non_empty(string: String) -> Option<String> {
}

pub fn atom_text<B: BufRead>(reader: &mut Reader<B>) -> Result<Option<String>, Error> {
reader.expand_empty_elements(false);
reader.config_mut().expand_empty_elements = false;

let mut innerbuf = Vec::new();
let mut depth = 0;
Expand Down Expand Up @@ -104,13 +104,13 @@ pub fn atom_text<B: BufRead>(reader: &mut Reader<B>) -> Result<Option<String>, E
innerbuf.clear();
}

reader.expand_empty_elements(true);
reader.config_mut().expand_empty_elements = true;

Ok(non_empty(result))
}

pub fn atom_xhtml<B: BufRead>(reader: &mut Reader<B>) -> Result<Option<String>, Error> {
reader.expand_empty_elements(false);
reader.config_mut().expand_empty_elements = false;

let mut innerbuf = Vec::new();
let mut depth = 0;
Expand Down Expand Up @@ -163,7 +163,7 @@ pub fn atom_xhtml<B: BufRead>(reader: &mut Reader<B>) -> Result<Option<String>,
innerbuf.clear();
}

reader.expand_empty_elements(true);
reader.config_mut().expand_empty_elements = true;

Ok(non_empty(result))
}
Expand All @@ -186,7 +186,7 @@ mod test {

fn read_x(xml: &str) -> Result<Option<String>, Error> {
let mut reader = Reader::from_reader(xml.as_bytes());
reader.expand_empty_elements(true);
reader.config_mut().expand_empty_elements = true;
loop {
let mut buf = Vec::new();
match reader.read_event_into(&mut buf).map_err(XmlError::new)? {
Expand Down

0 comments on commit 93324fb

Please sign in to comment.