Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wayland-scanner/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Update `quick-xml` to 0.37
Comment on lines 3 to 5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems strange - was updating this file overlooked when cutting the last release? 🤔

- Update `quick-xml` to 0.38

## 0.31.5 -- 2024-09-04

Expand Down
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.37.0"
quick-xml = "0.38.3"

[dev-dependencies]
similar = "2"
Expand Down
4 changes: 2 additions & 2 deletions wayland-scanner/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn parse_protocol<R: BufRead>(mut reader: Reader<R>) -> Protocol {
// parse the copyright
let copyright = match reader.read_event_into(&mut Vec::new()) {
Ok(Event::Text(copyright)) => {
copyright.unescape().ok().map(|x| x.to_string())
copyright.decode().ok().map(|x| x.to_string())
}
Ok(Event::CData(copyright)) => {
String::from_utf8(copyright.into_inner().into()).ok()
Expand Down Expand Up @@ -180,7 +180,7 @@ fn parse_description<R: BufRead>(reader: &mut Reader<R>, attrs: Attributes) -> (
if !description.is_empty() {
description.push_str("\n\n");
}
description.push_str(&bytes.unescape().unwrap_or_default())
description.push_str(&bytes.decode().unwrap_or_default())
}
Ok(Event::End(bytes)) if bytes.name().into_inner() == b"description" => break,
Ok(Event::Comment(_)) => {}
Expand Down
Loading