Remove clone in collect_text_contents

This commit is contained in:
Manish Goregaokar 2015-12-19 01:01:44 +05:30
parent 98972d0434
commit ef5de267d9

View file

@ -1697,7 +1697,7 @@ impl Node {
let mut content = String::new(); let mut content = String::new();
for node in iterator { for node in iterator {
match node.downcast::<Text>() { match node.downcast::<Text>() {
Some(text) => content.push_str(&text.upcast::<CharacterData>().Data()), Some(ref text) => content.push_str(&text.upcast::<CharacterData>().data()),
None => (), None => (),
} }
} }