File: quick-xml.diff

package info (click to toggle)
rust-xcb 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,904 kB
  • sloc: xml: 19,003; sh: 11; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 714 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
Index: xcb/Cargo.toml
===================================================================
--- xcb.orig/Cargo.toml
+++ xcb/Cargo.toml
@@ -214,4 +214,4 @@ features = [
 ]
 
 [build-dependencies.quick-xml]
-version = "0.30.0"
+version = ">= 0.34, < 0.37"
Index: xcb/build/parse.rs
===================================================================
--- xcb.orig/build/parse.rs
+++ xcb/build/parse.rs
@@ -305,7 +305,7 @@ impl<B: BufRead> Iterator for &mut Parse
 impl Parser<BufReader<File>> {
     pub fn from_file(xml_file: &Path) -> Self {
         let mut xml = XmlReader::from_file(xml_file).unwrap();
-        xml.trim_text(true);
+        xml.config_mut().trim_text(true);
 
         Parser {
             xml,