File: quick-xml-0.38.diff

package info (click to toggle)
rust-wayland-scanner 0.31.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 408 kB
  • sloc: xml: 213; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Index: wayland-scanner/Cargo.toml
===================================================================
--- wayland-scanner.orig/Cargo.toml
+++ wayland-scanner/Cargo.toml
@@ -51,7 +51,7 @@ proc-macro = true
 version = "1.0.11"
 
 [dependencies.quick-xml]
-version = "0.37.0"
+version = "0.38"
 
 [dependencies.quote]
 version = "1.0"
Index: wayland-scanner/src/parse.rs
===================================================================
--- wayland-scanner.orig/src/parse.rs
+++ wayland-scanner/src/parse.rs
@@ -88,7 +88,7 @@ fn parse_protocol<R: BufRead>(mut reader
                         // 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()
@@ -180,7 +180,7 @@ fn parse_description<R: BufRead>(reader:
                 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(_)) => {}