Skip to content

Commit

Permalink
Merge pull request #736 from torokati44/master
Browse files Browse the repository at this point in the history
scanner: Update ˙quick-xml`
  • Loading branch information
elinorbgr authored Jun 20, 2024
2 parents 41bab57 + 80a6765 commit 48e74e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wayland-scanner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0.11"
quote = "1.0"
quick-xml = "0.31"
quick-xml = "0.32"

[dev-dependencies]
similar = "2"
Expand Down
4 changes: 3 additions & 1 deletion wayland-scanner/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ macro_rules! extract_end_tag(

pub fn parse<S: Read>(stream: S) -> Protocol {
let mut reader = Reader::from_reader(BufReader::new(stream));
reader.trim_text(true).expand_empty_elements(true);
let reader_config = reader.config_mut();
reader_config.trim_text(true);
reader_config.expand_empty_elements = true;
parse_protocol(reader)
}

Expand Down

0 comments on commit 48e74e9

Please sign in to comment.