mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +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();
|
||||
for node in iterator {
|
||||
match node.downcast::<Text>() {
|
||||
Some(text) => content.push_str(&text.upcast::<CharacterData>().Data()),
|
||||
Some(ref text) => content.push_str(&text.upcast::<CharacterData>().data()),
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue