omit fmt call
Some checks are pending
continuous-integration/drone/push Build is passing

This commit is contained in:
Shimun 2019-03-26 17:57:40 +01:00
parent 3d2bea74d1
commit 12e32c622e

View File

@ -77,7 +77,7 @@ fn main() -> Result<(), Box<Error>> {
// Let's get the actual text in this text node. A text node wraps around // Let's get the actual text in this text node. A text node wraps around
// a RefCell<String>, so we need to call borrow() to get a &str out. // a RefCell<String>, so we need to call borrow() to get a &str out.
//let text = text_node.as_text().unwrap().borrow(); //let text = text_node.as_text().unwrap().borrow();
write!(out, "{}", serialize_node(as_node)?)?; out.write_all(serialize_node(as_node)?.as_bytes())?;
/*if let Some(child) = as_node.first_child() { /*if let Some(child) = as_node.first_child() {
//TODO: Convert Nodes to String, as this only works for Nodes containing plain text //TODO: Convert Nodes to String, as this only works for Nodes containing plain text