aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorProgramFOX <programfox@hotmail.be>2014-12-05 21:12:20 +0100
committerProgramFOX <programfox@hotmail.be>2014-12-05 21:12:20 +0100
commite2e553631518a0f91b747d038764fb3a3685dc04 (patch)
treed408dfa4a37b9e45d7005cebea2c7b02e079816f
parent86282022bd2f4fc7519c45e56f463bcc7ffd2bdb (diff)
downloadservo-e2e553631518a0f91b747d038764fb3a3685dc04.tar.gz
servo-e2e553631518a0f91b747d038764fb3a3685dc04.zip
Use .clone() instead of.as_slice().to_string()
-rw-r--r--components/script/dom/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 1ab7e853c1a..7fa0c9cfc9a 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -506,7 +506,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
// http://dom.spec.whatwg.org/#dom-document-characterset
fn CharacterSet(self) -> DOMString {
- self.encoding_name.borrow().as_slice().to_string()
+ self.encoding_name.borrow().clone()
}
// http://dom.spec.whatwg.org/#dom-document-content_type