diff --git a/src/element.rs b/src/element.rs index a94c1ce..47c8de9 100644 --- a/src/element.rs +++ b/src/element.rs @@ -347,14 +347,14 @@ impl Element { Event::Text(s) => { let text = s.unescape_and_decode(reader)?; if text != "" { - let mut current_elem = stack.last_mut().unwrap(); + let current_elem = stack.last_mut().unwrap(); current_elem.append_text_node(text); } }, Event::CData(s) => { let text = reader.decode(&s).into_owned(); if text != "" { - let mut current_elem = stack.last_mut().unwrap(); + let current_elem = stack.last_mut().unwrap(); current_elem.append_text_node(text); } },