diff options
author | ProgramFOX <programfox@hotmail.be> | 2014-12-05 21:12:20 +0100 |
---|---|---|
committer | ProgramFOX <programfox@hotmail.be> | 2014-12-05 21:12:20 +0100 |
commit | e2e553631518a0f91b747d038764fb3a3685dc04 (patch) | |
tree | d408dfa4a37b9e45d7005cebea2c7b02e079816f | |
parent | 86282022bd2f4fc7519c45e56f463bcc7ffd2bdb (diff) | |
download | servo-e2e553631518a0f91b747d038764fb3a3685dc04.tar.gz servo-e2e553631518a0f91b747d038764fb3a3685dc04.zip |
Use .clone() instead of.as_slice().to_string()
-rw-r--r-- | components/script/dom/document.rs | 2 |
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 |