diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-12-19 01:01:44 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-12-19 01:06:16 +0530 |
commit | ef5de267d9582905cc99c17b4129f95dfd20b35f (patch) | |
tree | 4279fcce3a4d99169206211a511ad240405c4841 /components/script/dom/node.rs | |
parent | 98972d04342602610a7465de7b0639e2b9c1dcf3 (diff) | |
download | servo-ef5de267d9582905cc99c17b4129f95dfd20b35f.tar.gz servo-ef5de267d9582905cc99c17b4129f95dfd20b35f.zip |
Remove clone in collect_text_contents
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 30aa8e78eea..f9c2cda2966 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -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 => (), } } |