aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/create.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-12-14 04:16:34 +0530
committerMs2ger <ms2ger@gmail.com>2014-12-27 14:48:36 +0100
commite9d1740e19a82c5c91cc196c7c00ba57c56ec971 (patch)
treecf20c732c36bf1763267e5776c02032a83c21639 /components/script/dom/create.rs
parent475ff4dcb7ecec6eed607c05eac452ab8bf52001 (diff)
downloadservo-e9d1740e19a82c5c91cc196c7c00ba57c56ec971.tar.gz
servo-e9d1740e19a82c5c91cc196c7c00ba57c56ec971.zip
script: to_string() -> into_string()
Diffstat (limited to 'components/script/dom/create.rs')
-rw-r--r--components/script/dom/create.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs
index 8311a297bdd..67b6ddfe53e 100644
--- a/components/script/dom/create.rs
+++ b/components/script/dom/create.rs
@@ -83,12 +83,12 @@ pub fn create_element(name: QualName, prefix: Option<DOMString>,
document: JSRef<Document>, creator: ElementCreator)
-> Temporary<Element> {
if name.ns != ns!(HTML) {
- return Element::new(name.local.as_slice().to_string(), name.ns, prefix, document);
+ return Element::new(name.local.as_slice().into_string(), name.ns, prefix, document);
}
macro_rules! make(
($ctor:ident $(, $arg:expr)*) => ({
- let obj = $ctor::new(name.local.as_slice().to_string(), prefix, document $(, $arg)*);
+ let obj = $ctor::new(name.local.as_slice().into_string(), prefix, document $(, $arg)*);
ElementCast::from_temporary(obj)
})
)