Update to quick-xml 0.16.
This commit is contained in:
parent
6f79508b09
commit
17f902b503
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ license = "MIT"
|
||||||
gitlab = { repository = "lumi/minidom-rs" }
|
gitlab = { repository = "lumi/minidom-rs" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
quick-xml = "0.15"
|
quick-xml = "0.16"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["comments"]
|
default = ["comments"]
|
||||||
|
|
|
@ -357,7 +357,7 @@ impl Element {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Event::CData(s) => {
|
Event::CData(s) => {
|
||||||
let text = reader.decode(&s).into_owned();
|
let text = reader.decode(&s)?.to_owned();
|
||||||
if text != "" {
|
if text != "" {
|
||||||
let current_elem = stack.last_mut().unwrap();
|
let current_elem = stack.last_mut().unwrap();
|
||||||
current_elem.append_text_node(text);
|
current_elem.append_text_node(text);
|
||||||
|
@ -370,7 +370,7 @@ impl Element {
|
||||||
Event::Comment(_) => return Err(Error::CommentsDisabled),
|
Event::Comment(_) => return Err(Error::CommentsDisabled),
|
||||||
#[cfg(feature = "comments")]
|
#[cfg(feature = "comments")]
|
||||||
Event::Comment(s) => {
|
Event::Comment(s) => {
|
||||||
let comment = reader.decode(&s).into_owned();
|
let comment = reader.decode(&s)?.to_owned();
|
||||||
if comment != "" {
|
if comment != "" {
|
||||||
let current_elem = stack.last_mut().unwrap();
|
let current_elem = stack.last_mut().unwrap();
|
||||||
current_elem.append_comment_node(comment);
|
current_elem.append_comment_node(comment);
|
||||||
|
|
Loading…
Reference in a new issue