mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
Remove clone in collect_text_contents
This commit is contained in:
parent
98972d0434
commit
ef5de267d9
1 changed files with 1 additions and 1 deletions
|
@ -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 => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue