Auto merge of #9026 - Manishearth:attack-of-the-clones, r=Ms2ger

Remove clone in collect_text_contents

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9026)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-20 00:14:02 +05:30
commit 8c87477138

View file

@ -1703,7 +1703,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 => (),
} }
} }