aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-12-27 16:48:27 +0100
committerMs2ger <ms2ger@gmail.com>2014-12-31 10:34:44 +0100
commitb6117a57aae0fe39e64417ba9b8afdb2f701c9ef (patch)
treea071f05b702f07a86b6745119467b9e5aca13977 /components/script/dom/htmlelement.rs
parent37a97f3273c442fa59a3f65e8300a2527b004036 (diff)
downloadservo-b6117a57aae0fe39e64417ba9b8afdb2f701c9ef.tar.gz
servo-b6117a57aae0fe39e64417ba9b8afdb2f701c9ef.zip
Replace the remaining to_string calls by into_string calls.
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index 46572ed76e0..27cfc3712a3 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -167,7 +167,7 @@ impl<'a> HTMLElementCustomAttributeHelpers for JSRef<'a, HTMLElement> {
let element: JSRef<Element> = ElementCast::from_ref(self);
element.get_attribute(ns!(""), &Atom::from_slice(to_snake_case(name).as_slice())).map(|attr| {
let attr = attr.root();
- attr.value().as_slice().to_string()
+ attr.value().as_slice().into_string()
})
}